mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-01 09:35:52 -05:00
build: better scope usage of -Wl,-headerpad_max_install_names
If we aren't using install_name_tool when cross-compiling, we don't need to test for / add it to LDFLAGS when that is the case.
This commit is contained in:
parent
3bee51427a
commit
1a9aa8d4ee
1 changed files with 3 additions and 1 deletions
|
@ -696,6 +696,9 @@ case $host in
|
|||
TARGET_OS=darwin
|
||||
if test $cross_compiling != "yes"; then
|
||||
BUILD_OS=darwin
|
||||
|
||||
AX_CHECK_LINK_FLAG([-Wl,-headerpad_max_install_names], [CORE_LDFLAGS="$CORE_LDFLAGS -Wl,-headerpad_max_install_names"], [], [$LDFLAG_WERROR])
|
||||
|
||||
AC_CHECK_PROG([BREW], [brew], [brew])
|
||||
if test "$BREW" = "brew"; then
|
||||
dnl These Homebrew packages may be keg-only, meaning that they won't be found
|
||||
|
@ -771,7 +774,6 @@ case $host in
|
|||
esac
|
||||
fi
|
||||
|
||||
AX_CHECK_LINK_FLAG([-Wl,-headerpad_max_install_names], [CORE_LDFLAGS="$CORE_LDFLAGS -Wl,-headerpad_max_install_names"], [], [$LDFLAG_WERROR])
|
||||
CORE_CPPFLAGS="$CORE_CPPFLAGS -DMAC_OSX -DOBJC_OLD_DISPATCH_PROTOTYPES=0"
|
||||
|
||||
dnl ignore deprecated-declarations warnings coming from objcxx code
|
||||
|
|
Loading…
Add table
Reference in a new issue