try to fix apple build
authornotaz <notasas@gmail.com>
Sat, 26 Oct 2024 20:12:21 +0000 (23:12 +0300)
committernotaz <notasas@gmail.com>
Sun, 27 Oct 2024 19:17:51 +0000 (21:17 +0200)
Makefile

index 1219b09..f3730ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,8 @@ LDFLAGS += -fsanitize=address
 endif
 ifneq ($(NO_FSECTIONS), 1)
 CFLAGS += -ffunction-sections -fdata-sections
-LDFLAGS += -Wl,--gc-sections
+FSECTIONS_LDFLAGS ?= -Wl,--gc-sections
+LDFLAGS += $(FSECTIONS_LDFLAGS)
 endif
 CFLAGS += -DP_HAVE_MMAP=$(if $(NO_MMAP),0,1) \
          -DP_HAVE_PTHREAD=$(if $(NO_PTHREAD),0,1) \