From e6f13b4724f5950473b3a0a3b4da02ad9d85273c Mon Sep 17 00:00:00 2001 From: notaz Date: Sat, 26 Oct 2024 23:12:21 +0300 Subject: [PATCH] try to fix apple build --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1219b097..f3730ee2 100644 --- 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) \ -- 2.39.5