From 348b145590b0b6ab32b04ca7e101d5abe0929ca7 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 03 Apr 2025 16:36:07 +0800 Subject: [PATCH] Makefile: Put libraries after the source --- Makefile | 2 +- diff --git a/Makefile b/Makefile index 3cb45ae21d707b776362ef323fcd81ec8b486c6d..81e3ef1c7d276087b19440efd16a57a32930da53 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ hookc/hookc: git2d/git2d: git2d/main.o git2d/bare.o git2d/utf8.c - $(CC) $(CFLAGS) `pkg-config --cflags --libs libgit2` -lpthread -o git2d/git2d $^ + $(CC) $(CFLAGS) -o git2d/git2d $^ `pkg-config --cflags --libs libgit2` -lpthread version.go: printf 'package main\n\nconst VERSION = "%s"\n' `git describe --tags --always --dirty` > $@ -- 2.48.1