mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
build: use -no_exported_symbols on macOS
This reduces the size of the binary by 2-3% when building with `--enable-reduce-exports`.
This commit is contained in:
parent
9c5cdf07f3
commit
81d4dc8e87
1 changed files with 1 additions and 0 deletions
|
@ -1316,6 +1316,7 @@ if test "$use_reduce_exports" = "yes"; then
|
|||
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [CORE_CXXFLAGS="$CORE_CXXFLAGS -fvisibility=hidden"],
|
||||
[AC_MSG_ERROR([Cannot set hidden symbol visibility. Use --disable-reduce-exports.])], [$CXXFLAG_WERROR])
|
||||
AX_CHECK_LINK_FLAG([-Wl,--exclude-libs,ALL], [RELDFLAGS="-Wl,--exclude-libs,ALL"], [], [$LDFLAG_WERROR])
|
||||
AX_CHECK_LINK_FLAG([-Wl,-no_exported_symbols], [LIBTOOL_APP_LDFLAGS="$LIBTOOL_APP_LDFLAGS -Wl,-no_exported_symbols"], [], [$LDFLAG_WERROR])
|
||||
fi
|
||||
|
||||
if test "$use_tests" = "yes"; then
|
||||
|
|
Loading…
Reference in a new issue