X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2a87985348442440a61a1f6de3a4858931637920..33785d9f22d92717aedef5249210e03b69bdff5c:/aclocal.m4 diff --git a/aclocal.m4 b/aclocal.m4 index f8f879a9e2..4a689c1309 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1326,7 +1326,7 @@ while test \${#} -gt 0; do shift ;; - -l*|-L*|-flat_namespace) + -l*|-L*|-flat_namespace|-headerpad_max_install_names) # collect these options args="\${args} \${1}" ;; @@ -1388,16 +1388,16 @@ EOF chmod +x shared-ld-sh dnl Use the shared-ld-sh helper script - SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -o" - SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -o" + SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" + SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" SHARED_LD_CXX="$SHARED_LD_CC" SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" else dnl Use the -single_module flag and let the linker do it for us - SHARED_LD_CC="\${CC} -dynamiclib -single_module -o" - SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -o" - SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -o" - SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -o" + SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" + SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" + SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" + SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" fi PIC_FLAG="-dynamic -fPIC" @@ -1581,7 +1581,7 @@ if test \$DEPSMODE = gcc ; then else depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` if test -f \$depfile ; then - sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d + sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d rm -f \$depfile fi fi @@ -1613,13 +1613,9 @@ AC_DEFUN(AC_BAKEFILE_CHECK_BASIC_STUFF, AC_PROG_MAKE_SET AC_SUBST(MAKE_SET) - if test "$build" != "$host" ; then - AR=$host_alias-ar - STRIP=$host_alias-strip - else - AC_CHECK_PROG(AR, ar, ar, ar) - AC_CHECK_PROG(STRIP, strip, strip, true) - fi + AC_CHECK_TOOL(AR, ar, ar) + AC_CHECK_TOOL(STRIP, strip, :) + AC_CHECK_TOOL(NM, nm, :) case ${host} in *-hp-hpux* )