[ODE] [patch] gcc detection

Adam D. Moss adam at gimp.org
Thu Jun 23 17:14:55 MST 2005


GCC isn't always called 'g++', in which case you'll likely end
up with a dysfunctional OPCODE/tricollider because the GCC+OPCODE
workaround doesn't kick-in.

I'll be putting this patch on the trunk soon if there aren't
objections.

--adam
-- 
Adam D. Moss   -   adam at gimp.org
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 4632)
+++ Makefile	(working copy)
@@ -184,6 +184,9 @@
 ifeq ($(CC),g++)
 OPCODE/%.o: OPT=1
 endif
+ifeq ($(I_AM_GCC),yes)
+OPCODE/%.o: OPT=1
+endif
 
 endif
 
Index: config/makefile.osx
===================================================================
--- config/makefile.osx	(revision 4632)
+++ config/makefile.osx	(working copy)
@@ -25,3 +25,7 @@
 OPT=0
 C_FLAGS+=-g
 endif
+
+I_AM_GCC=yes
+
+
Index: config/makefile.unix-gcc
===================================================================
--- config/makefile.unix-gcc	(revision 4632)
+++ config/makefile.unix-gcc	(working copy)
@@ -34,3 +34,6 @@
 
 # some other possible flags:
 #   -malign-double -mpentiumpro -march=pentiumpro
+
+I_AM_GCC=yes
+
Index: config/makefile.mingw
===================================================================
--- config/makefile.mingw	(revision 4632)
+++ config/makefile.mingw	(working copy)
@@ -27,3 +27,8 @@
 OPT=0
 C_FLAGS+=-g
 endif
+
+I_AM_GCC=yes
+
+
+
Index: config/makefile.cygwin
===================================================================
--- config/makefile.cygwin	(revision 4632)
+++ config/makefile.cygwin	(working copy)
@@ -27,3 +27,7 @@
 OPT=0
 C_FLAGS+=-g
 endif
+
+I_AM_GCC=yes
+
+


More information about the ODE mailing list