1531 | @@ -1532,6 +1532,7 @@ if test "$use_reduce_exports" = "yes"; then
1532 | AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [CORE_CXXFLAGS="$CORE_CXXFLAGS -fvisibility=hidden"],
1533 | [AC_MSG_ERROR([Cannot set hidden symbol visibility. Use --disable-reduce-exports.])], [$CXXFLAG_WERROR])
1534 | AX_CHECK_LINK_FLAG([-Wl,--exclude-libs,ALL], [RELDFLAGS="-Wl,--exclude-libs,ALL"], [], [$LDFLAG_WERROR])
1535 | + AX_CHECK_LINK_FLAG([-Wl,-no_exported_symbols], [RELDFLAGS="$RELDFLAGS -Wl,-no_exported_symbols"], [], [$LDFLAG_WERROR])
This makes libbitcoinconsensus.0.dylib export no symbols, which is not what we want, right?
% dyld_info -exports src/.libs/libbitcoinconsensus.0.dylib
src/.libs/libbitcoinconsensus.0.dylib [arm64]:
-exports:
offset symbol
Moved this into LIBTOOL_APP_LDFLAGS.