Bug 271504 --with-macos-sdk=/Developer/SDKs/MacOSX10.2.8.sdk breaks w/ apple gcc

r=bryner
This commit is contained in:
timeless%mozdev.org 2005-03-15 22:05:01 +00:00
parent 497ed774fe
commit e433544e98

View File

@ -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