mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 08:12:05 +00:00
Bug 271504 --with-macos-sdk=/Developer/SDKs/MacOSX10.2.8.sdk breaks w/ apple gcc
r=bryner
This commit is contained in:
parent
497ed774fe
commit
e433544e98
@ -448,11 +448,11 @@ AC_SUBST(MACOS_SDK_DIR)
|
||||
|
||||
if test "$MACOS_SDK_DIR"; then
|
||||
export NEXT_ROOT=$MACOS_SDK_DIR
|
||||
CFLAGS="-I${MACOS_SDK_DIR}/usr/include $CFLAGS"
|
||||
CXXFLAGS="-I${MACOS_SDK_DIR}/usr/include $CXXFLAGS"
|
||||
changequote(,)
|
||||
GCC_VERSION=`echo $CXX_VERSION | perl -pe "s/gcc version ([^ ]*).*/\1/"`
|
||||
GCC_VERSION=`echo $CXX_VERSION | perl -pe "s/^.*gcc version ([^ ]*).*/\1/"`
|
||||
changequote([,])
|
||||
CFLAGS="-I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -I${MACOS_SDK_DIR}/usr/include $CFLAGS"
|
||||
CXXFLAGS="-I${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -I${MACOS_SDK_DIR}/usr/include $CXXFLAGS"
|
||||
LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION} -L${MACOS_SDK_DIR}/usr/lib $LIBS"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user