]> git.saurik.com Git - wxWidgets.git/commitdiff
define NO_GCC_PRAGMA in wx-config output on Darwin
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 13 Aug 2003 14:25:10 +0000 (14:25 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 13 Aug 2003 14:25:10 +0000 (14:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index 565b4672c0455adda9f186d2580fce2472aecf66..c29078fe4b09e4f5650697f8ad3eff59a29d3500 100755 (executable)
--- a/configure
+++ b/configure
@@ -35454,10 +35454,13 @@ else
         powerpc-*-darwin* )
                                     CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
             ;;
-        *)
-            ;;
     esac
 fi
+case "${host}" in
+    powerpc-*-darwin* )
+                        CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
+        ;;
+esac
 
 
 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
index 1c445a06e22f33fdb68587d9ff206cd66df93d76..ed2a157a4d8ee451215f9c6c69a4101f63544561 100644 (file)
@@ -5661,10 +5661,16 @@ else
             dnl pragmas:
             CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
             ;;
-        *)
-            ;;
     esac
 fi
+dnl We have to output NO_GCC_PRAGMA with wx-config on Apple, too:
+case "${host}" in
+    powerpc-*-darwin* )
+        dnl Some Apple's GCC version are broken and can't handle the
+        dnl pragmas:
+        CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX"
+        ;;
+esac
 
 
 dnl for convenience, sort the samples in alphabetical order