@@ -572,26 +572,26 @@ check_params() {
OSXAPP=""
fi
if [ "$os" = "OSX" ]; then
# Test on G5
if [ "$enable_osx_g5" != "0" ]; then
log 1 "detecting G5... yes (forced)"
else
# First, are we a real OSX system, else we can't detect it
native=`LC_ALL=C uname | tr '[A-Z]' '[a-z]' | grep darwin`
# If $host doesn't match $build , we are cross-compiling
if [ -n "$native" ] && [ "$build" != "$host" ]; then
$cc_build $SRC_DIR/os/macosx/G5_detector.cpp -o G5_detector
if [ -n "$native" ] && [ "$build" == "$host" ]; then
$cxx_build $SRC_DIR/os/macosx/G5_detector.cpp -o G5_detector
res=`./G5_detector`
rm -f G5_detector
if [ -n "$res" ]; then
# This is G5, add flags for it
enable_osx_g5="2"
log 1 "detecting G5... yes"
enable_osx_g5="0"
log 1 "detecting G5... no"
Status change: