Commit b0d89baf authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

configure.ac: Use -syslibroot ld argument when using --with-macosx-sdk.

parent 8f8d55f2
...@@ -345,9 +345,9 @@ dnl ...@@ -345,9 +345,9 @@ dnl
AC_ARG_WITH(macosx-sdk, AC_ARG_WITH(macosx-sdk,
[ --with-macosx-sdk compile with the Mac OS X 10.4u SDK],[], with_macosx_sdk=no) [ --with-macosx-sdk compile with the Mac OS X 10.4u SDK],[], with_macosx_sdk=no)
if test "${with_macosx_sdk}" != "no" ; then if test "${with_macosx_sdk}" != "no" ; then
CC="${CC} -isysroot /Developer/SDKs/MacOSX10.4u.sdk" CC="${CC} -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
CXX="${CXX} -isysroot /Developer/SDKs/MacOSX10.4u.sdk" CXX="${CXX} -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
OBJC="${OBJC} -isysroot /Developer/SDKs/MacOSX10.4u.sdk" OBJC="${OBJC} -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
LD="${LD} -syslibroot /Developer/SDKs/MacOSX10.4u.sdk" LD="${LD} -syslibroot /Developer/SDKs/MacOSX10.4u.sdk"
CFLAGS_save="${CFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4"; CFLAGS="${CFLAGS_save}" CFLAGS_save="${CFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4"; CFLAGS="${CFLAGS_save}"
CXXFLAGS_save="${CXXFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4"; CXXFLAGS="${CXXFLAGS_save}" CXXFLAGS_save="${CXXFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=10.4 -mmacosx-version-min=10.4"; CXXFLAGS="${CXXFLAGS_save}"
......
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