]> git.saurik.com Git - wxWidgets.git/blobdiff - src/makeg95.env
os2 distribution response file
[wxWidgets.git] / src / makeg95.env
index e53d90b25c2d510aaadd705d4bd284cbd865ae9c..9c1514fdd8fa7ccad979d50bde0cc40242cfaaec 100644 (file)
@@ -54,9 +54,15 @@ COPY=cp
 # C++ compiler
 # Put a comment before --pipe for Cygwin, remove comment for Mingw32 2.95
 
+# _GCC295 means GCC is GCC 2.95
+# _GCC3 mans GCC is 3.x or better (can actually just be 3.1 or better
+#                                  for Cygwin/MinGW)
+_GCC295=$(if $(findstring 2.95, $(MINGW32VERSION)), 1,)
+_GCC3=$(if $(findstring 3., $(MINGW32VERSION)), 1,)
+
 ifeq ($(MINGW32),1)
-  ifneq "$(findstring 2.95, $(MINGW32VERSION))" ""
-    CC = $(CROSS)gcc --pipe -fvtable-thunks
+  ifneq "$(_GCC295)$(_GCC3)" ""
+    CC = $(CROSS)gcc --pipe $(if $(_GCC3), , -fvtable-thunks)
   else
     CC = $(CROSS)gcc
   endif