*-pc-os2_emx | *-pc-os2-emx )
PLATFORM_OS2=1
;;
- powerpc-*-darwin* )
+ *-*-darwin* )
PLATFORM_MAC=1
PLATFORM_MACOSX=1
;;
case "${BAKEFILE_HOST}" in
*-*-darwin* )
- CFLAGS="$CFLAGS -fno-common"
- CXXFLAGS="$CXXFLAGS -fno-common"
+ if test "x$GCC" = "xyes"; then
+ CFLAGS="$CFLAGS -fno-common"
+ CXXFLAGS="$CXXFLAGS -fno-common"
+ fi
+ if test "x$XLCC" = "xyes"; then
+ CFLAGS="$CFLAGS -qnocommon"
+ CXXFLAGS="$CXXFLAGS -qnocommon"
+ fi
;;
*-pc-os2_emx | *-pc-os2-emx )
LIBEXT=".$OS2_LIBEXT"
dlldir="$bindir"
;;
- powerpc-*-darwin* )
+ *-*-darwin* )
SO_SUFFIX="dylib"
SO_SUFFIX_MODULE="bundle"
;;
SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
fi
- PIC_FLAG="-dynamic -fPIC"
+ if test "x$GCC" == "xyes"; then
+ PIC_FLAG="-dynamic -fPIC"
+ fi
+ if test "x$XLCC" = "xyes"; then
+ PIC_FLAG="-dynamic -DPIC"
+ fi
;;
*-*-aix* )
DEPSMODE=gcc
DEPS_TRACKING=1
case "${BAKEFILE_HOST}" in
- powerpc-*-darwin* )
+ *-*-darwin* )
DEPSFLAG_GCC="-no-cpp-precomp -MMD"
;;
* )