From f4eb6f74c25a7400874f27d78993f9f95e26abfd Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Thu, 8 Aug 2024 21:44:12 +1000 Subject: [PATCH] config: don't force shared linkage on FreeBSD -shared was hardcoded, so when building with --disable-shared it amounts to trying to do shared linkage against static libs, which naturally fails. The fix is straightforward; just don't hardcode it. libtool will work out what to do. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris --- config/Rules.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/Rules.am b/config/Rules.am index 30c5f353cd..00ac890e23 100644 --- a/config/Rules.am +++ b/config/Rules.am @@ -57,7 +57,7 @@ AM_LDFLAGS += $(ASAN_LDFLAGS) AM_LDFLAGS += $(UBSAN_LDFLAGS) if BUILD_FREEBSD -AM_LDFLAGS += -fstack-protector-strong -shared +AM_LDFLAGS += -fstack-protector-strong AM_LDFLAGS += -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel AM_LDFLAGS += -lm endif