From 03d2d2e4f0daccbfa5fab9dac93e63ea5c02832e Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 18 Dec 2022 15:00:39 -0500 Subject: [PATCH] Apple ld doesn't support --exclude-libs so don't use this flag. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bb791134..ec77dd50 100644 --- a/Makefile +++ b/Makefile @@ -65,10 +65,13 @@ ifdef ARCH_WIN endif # Some libraries aren't needed by plugins and might conflict with DAWs that load libRack, so make their symbols local to libRack instead of global (default). -LDFLAGS += -Wl,--exclude-libs,libzstd.a -LDFLAGS += -Wl,--exclude-libs,libarchive.a -LDFLAGS += -Wl,--exclude-libs,librtmidi.a -LDFLAGS += -Wl,--exclude-libs,librtaudio.a +# --exclude-libs is unavailable on Apple ld +ifndef ARCH_MAC + LDFLAGS += -Wl,--exclude-libs,libzstd.a + LDFLAGS += -Wl,--exclude-libs,libarchive.a + LDFLAGS += -Wl,--exclude-libs,librtmidi.a + LDFLAGS += -Wl,--exclude-libs,librtaudio.a +endif include compile.mk