Future proof C++ code
authorSam Lantinga <slouken@libsdl.org>
Fri, 28 Apr 2006 05:43:58 +0000
changeset 174370a4d819e95e
parent 1742 af4352da64d8
child 1744 7f39af143e38
Future proof C++ code
build-scripts/fatbuild.sh
     1.1 --- a/build-scripts/fatbuild.sh	Fri Apr 28 05:38:06 2006 +0000
     1.2 +++ b/build-scripts/fatbuild.sh	Fri Apr 28 05:43:58 2006 +0000
     1.3 @@ -11,6 +11,7 @@
     1.4  
     1.5  # PowerPC compiler flags (10.2 runtime compatibility)
     1.6  CC_PPC="gcc-3.3 -arch ppc"
     1.7 +CXX_PPC="g++-3.3 -arch ppc"
     1.8  CFLAGS_PPC=""
     1.9  CPPFLAGS_PPC="-DMAC_OS_X_VERSION_MIN_REQUIRED=1020 \
    1.10  -nostdinc \
    1.11 @@ -26,6 +27,7 @@
    1.12  
    1.13  # Intel compiler flags (10.4 runtime compatibility)
    1.14  CC_X86="gcc-4.0 -arch i386"
    1.15 +CXX_X86="g++-4.0 -arch i386"
    1.16  CFLAGS_X86="-mmacosx-version-min=10.4"
    1.17  CPPFLAGS_X86="-DMAC_OS_X_VERSION_MIN_REQUIRED=1040 \
    1.18  -nostdinc \
    1.19 @@ -155,7 +157,7 @@
    1.20  #
    1.21  if test x$configure_ppc = xyes; then
    1.22      (cd build/ppc && \
    1.23 -     sh ../../configure --build=`uname -p`-apple-darwin --host=powerpc-apple-darwin CC="$CC_PPC" CFLAGS="$CFLAGS $CFLAGS_PPC" CPPFLAGS="$CPPFLAGS_PPC" LDFLAGS="$LFLAGS_PPC") || exit 2
    1.24 +     sh ../../configure --build=`uname -p`-apple-darwin --host=powerpc-apple-darwin CC="$CC_PPC" CXX="$CXX_PPC" CFLAGS="$CFLAGS $CFLAGS_PPC" CPPFLAGS="$CPPFLAGS_PPC" LDFLAGS="$LFLAGS_PPC") || exit 2
    1.25  fi
    1.26  if test x$make_ppc = xyes; then
    1.27      (cd build/ppc && ls include && make -j$NJOB) || exit 3
    1.28 @@ -166,7 +168,7 @@
    1.29  #
    1.30  if test x$configure_x86 = xyes; then
    1.31      (cd build/x86 && \
    1.32 -     sh ../../configure --build=`uname -p`-apple-darwin --host=i386-apple-darwin CC="$CC_X86" CFLAGS="$CFLAGS $CFLAGS_X86" CPPFLAGS="$CPPFLAGS_X86" LDFLAGS="$LFLAGS_X86") || exit 2
    1.33 +     sh ../../configure --build=`uname -p`-apple-darwin --host=i386-apple-darwin CC="$CC_X86" CXX="$CXX_X86" CFLAGS="$CFLAGS $CFLAGS_X86" CPPFLAGS="$CPPFLAGS_X86" LDFLAGS="$LFLAGS_X86") || exit 2
    1.34  fi
    1.35  if test x$make_x86 = xyes; then
    1.36      (cd build/x86 && make -j$NJOB) || exit 3