Kaydet (Commit) 4956d066 authored tarafından Michael Stahl's avatar Michael Stahl

configure: ensure that install_name_tool matches the toolchain...

... used to build, since otherwise it'll break with "malformed object"
errors.  Alo replace now unused XCRUN variable.

Change-Id: I58a20c34f903b7a7acb46597d94243389e6b3842
üst 3750deae
......@@ -262,6 +262,7 @@ export INPATH_FOR_BUILD=@INPATH_FOR_BUILD@
export INSTDIR=@INSTDIR@
export INSTALLDIR=@INSTALLDIR@
export INSTALLDIRNAME=@INSTALLDIRNAME@
export INSTALL_NAME_TOOL=@INSTALL_NAME_TOOL@
export JAVACISGCJ=@JAVACISGCJ@
export JAVACOMPILER=@JAVACOMPILER@
export JAVADOC=@JAVADOC@
......@@ -601,7 +602,6 @@ export WPG_CFLAGS=$(gb_SPACE)@WPG_CFLAGS@
export WPG_LIBS=$(gb_SPACE)@WPG_LIBS@
export WPS_CFLAGS=$(gb_SPACE)@WPS_CFLAGS@
export WPS_LIBS=$(gb_SPACE)@WPS_LIBS@
export XCRUN=@XCRUN@
export XINERAMA_LINK=@XINERAMA_LINK@
export XMLLINT=@XMLLINT@
export XRANDR_CFLAGS=$(gb_SPACE)@XRANDR_CFLAGS@
......
......@@ -2698,11 +2698,11 @@ if test $_os = Darwin; then
if test "$(echo $MACOSX_SDK_PATH | cut -c1-23)" = "/Applications/Xcode.app"; then
CC="`xcrun -find gcc` $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
CXX="`xcrun -find g++` $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
XCRUN=xcrun
else
CC="gcc-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
CXX="g++-4.2 $bitness -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
fi
INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
LIBTOOL=libtool
;;
10.7|10.8|10.9)
......@@ -2719,7 +2719,7 @@ if test $_os = Darwin; then
fi
CC="`xcrun -find clang` $bitness $lto -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
CXX="`xcrun -find clang++` $bitness $lto $stdlib -mmacosx-version-min=$with_macosx_version_min_required -isysroot $MACOSX_SDK_PATH"
XCRUN=xcrun
INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
AR=`xcrun -find ar`
LIBTOOL=`xcrun -find libtool`
RANLIB=`xcrun -find ranlib`
......@@ -2820,7 +2820,7 @@ AC_SUBST(MACOSX_SDK_VERSION)
AC_SUBST(MACOSX_DEPLOYMENT_TARGET)
AC_SUBST(MAC_OS_X_VERSION_MIN_REQUIRED)
AC_SUBST(MAC_OS_X_VERSION_MAX_ALLOWED)
AC_SUBST(XCRUN)
AC_SUBST(INSTALL_NAME_TOOL)
AC_SUBST(LIBTOOL) # Note that the OS X libtool command is unrelated to GNU libtool
AC_SUBST(MACOSX_CODESIGNING_IDENTITY)
AC_SUBST(ENABLE_MACOSX_SANDBOX)
......@@ -2866,7 +2866,7 @@ if test $_os = iOS; then
fi
CC="`xcrun -find clang` -arch $arch -isysroot $sysroot $lto $versionmin"
CXX="`xcrun -find clang++` -arch $arch -isysroot $sysroot $lto $versionmin"
XCRUN=xcrun
INSTALL_NAME_TOOL=`xcrun -find install_name_tool`
AR=`xcrun -find ar`
LIBTOOL=`xcrun -find libtool`
RANLIB=`xcrun -find ranlib`
......
......@@ -90,7 +90,7 @@ foreach $file (@ARGV)
close(IN) or die "got $? from $call";
if ($change ne "")
{
$call = "$ENV{'XCRUN'} install_name_tool$change $file";
$call = "$ENV{'INSTALL_NAME_TOOL'} $change $file";
system($call) == 0 or die "cannot $call";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment