From d94809d8acf3a12b978a0fd3e9aadfc858356b6c Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 6 Sep 2024 00:19:08 +0200 Subject: [PATCH] buildsys: tweak GAC_LDFLAGS on macOS (#5789) - don't use a bundle loader (esp. for installed GAP) - don't use flat namespace, instead use dynamic lookup - use `-Wl,-no_fixup_chains` to avoid warnings (and resolve potential issues) with certain Xcode versions, see --- Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index 06e69c8e1d..b987504836 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -308,7 +308,7 @@ ifneq (,$(findstring cygwin,$(host_os))) else ifneq (,$(findstring darwin,$(host_os))) GAC_CFLAGS = -fno-common - GAC_LDFLAGS = -bundle -flat_namespace -bundle_loader $(SYSINFO_GAP) + GAC_LDFLAGS = -bundle -undefined dynamic_lookup -Wl,-no_fixup_chains else GAC_CFLAGS = -fPIC GAC_LDFLAGS = -shared -fPIC