mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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 <behlendorf1@llnl.gov> Reviewed-by: Allan Jude <allan@klarasystems.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16427
This commit is contained in:
parent
ed0db1cc8b
commit
6caff8447d
@ -57,7 +57,7 @@ AM_LDFLAGS += $(ASAN_LDFLAGS)
|
|||||||
AM_LDFLAGS += $(UBSAN_LDFLAGS)
|
AM_LDFLAGS += $(UBSAN_LDFLAGS)
|
||||||
|
|
||||||
if BUILD_FREEBSD
|
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 += -Wl,-x -Wl,--fatal-warnings -Wl,--warn-shared-textrel
|
||||||
AM_LDFLAGS += -lm
|
AM_LDFLAGS += -lm
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user