From b1aea326f00a12e74f9ead29dc00e47e480c7d57 Mon Sep 17 00:00:00 2001 From: Matt Whitlock Date: Fri, 24 Apr 2026 05:51:53 -0400 Subject: [PATCH] Makefile: -Wl,--gc-sections goes in LDFLAGS, not LDLIBS Changelog-None --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 248642aa5ebe70c9006b948d9d15832c688b3cb7..95d2c14a57110b481ca269861aec7cf5a4cda206 100644 --- a/Makefile +++ b/Makefile @@ -315,7 +315,7 @@ LDLIBS = -L$(CPATH) -lm $(SQLITE3_LDLIBS) $(COVFLAGS) endif ifeq ($(HAVE_FUNCTION_SECTIONS),1) -LDLIBS += -Wl,--gc-sections +LDFLAGS += -Wl,--gc-sections endif # If we have the postgres client library we need to link against it as well