From 6caff8447dfb190145b65f22dd9ff62aedd8c5d6 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Sat, 10 Aug 2024 07:34:04 +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/ Reviewed-by: Brian Behlendorf Reviewed-by: Allan Jude Signed-off-by: Rob Norris Closes #16427 --- config/Rules.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/Rules.am b/config/Rules.am index 30c5f353c..00ac890e2 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