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
--- a/old-configure.in
+++ b/old-configure.in
@@ -4097,17 +4097,17 @@ if test -n "$MOZ_REPLACE_MALLOC"; then
dnl forgets to set the weak flag in the dyld info.
dnl See http://glandium.org/blog/?p=2764 for more details.
dnl
dnl Values for ac_cv_weak_dynamic_linking, and subsequently
dnl MOZ_REPLACE_MALLOC_LINKAGE are thus:
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
ac_cv_weak_dynamic_linking="compiler support"
fi
else
if test -n "$_DYLD_INFO"; then
ac_cv_weak_dynamic_linking="dummy library"