config.lib
changeset 6638 23d36c92517c
parent 6626 9520de80f461
child 6719 4cc327ad39d5
child 7008 7a74ee540047
--- a/config.lib	Thu Mar 15 22:48:46 2007 +0000
+++ b/config.lib	Thu Mar 15 23:26:47 2007 +0000
@@ -581,8 +581,8 @@
 			# 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