From: notaz Date: Sat, 26 Oct 2024 20:12:21 +0000 (+0300) Subject: try to fix apple build X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6f13b4724f5950473b3a0a3b4da02ad9d85273c;p=pcsx_rearmed.git try to fix apple build --- 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) \