Bug 1369866 - Use TOOLCHAIN_PREFIX when running dyldinfo; r=ted

The test in old-configure.in for MOZ_REPLACE_MALLOC_LINKAGE runs
dyldinfo, which is a native tool on OSX. We have it in the cross
toolchain as well, but as x86_64-apple-darwin11-dyldinfo. We should use
the TOOLCHAIN_PREFIX here to make sure we get the same result as native
builds.

MozReview-Commit-ID: 3jyzpaM8ZGy

--HG--
extra : rebase_source : fa0d2c1470f8d61b3f31c9a46609d8911ae2ff91
This commit is contained in:
Mike Shal 2017-06-02 16:09:11 -04:00
parent 0dd1135916
commit 04a7d0565e

View File

@ -4105,7 +4105,7 @@ if test -n "$MOZ_REPLACE_MALLOC"; then
dnl - "flat namespace" when -flat_namespace alone is needed
dnl - "dummy library" when a dummy library and -flat_namespace are needed
dnl - "compiler support" when nothing is needed
if test -n "$_DYLD_INFO" && dyldinfo -bind conftest${DLL_SUFFIX} 2> /dev/null | grep "_foo (weak import)" > /dev/null; then
if test -n "$_DYLD_INFO" && ${TOOLCHAIN_PREFIX}dyldinfo -bind conftest${DLL_SUFFIX} 2> /dev/null | grep "_foo (weak import)" > /dev/null; then
if test -n "$_CLASSIC_INFO"; then
ac_cv_weak_dynamic_linking="flat namespace"
else