summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-emulation/snes9x/files/snes9x-gcc3.diff')
-rw-r--r--games-emulation/snes9x/files/snes9x-gcc3.diff35
1 files changed, 35 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/snes9x-gcc3.diff b/games-emulation/snes9x/files/snes9x-gcc3.diff
new file mode 100644
index 000000000000..d65616446cff
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-gcc3.diff
@@ -0,0 +1,35 @@
+diff -ur release.orig/Makefile.linux release/Makefile.linux
+--- release.orig/Makefile.linux Sun Jul 14 18:24:34 2002
++++ release/Makefile.linux Sun Jul 14 18:24:48 2002
+@@ -102,7 +102,7 @@
+ OPENGLNO_DEPENDS=use_opengl
+ endif
+
+-CCC = gcc
++CCC = g++
+ CC = gcc
+ NASM = nasm
+
+diff -ur release.orig/unix/config.c release/unix/config.c
+--- release.orig/unix/config.c Sun Jul 14 18:24:34 2002
++++ release/unix/config.c Sun Jul 14 18:25:01 2002
+@@ -528,7 +528,7 @@
+ p = find_config_string(config[0], section, name, NULL);
+
+ if (p)
+- return (p->data ? p->data : "");
++ return (p->data ? p->data : (char*) "");
+ else
+ return def;
+ }
+--- release.orig/Makefile.linux 2002-10-03 16:04:29.000000000 -0400
++++ release/Makefile.linux 2001-09-18 02:04:07.000000000 -0400
+@@ -108,7 +108,7 @@
+
+ INCLUDES=-I/usr/X11R6/include -I/usr/local/include
+
+-OPTIMISE=-O6 -mpentium -fomit-frame-pointer -fno-exceptions
++OPTIMISE=
+
+ CCFLAGS = $(OPTIMISE) -DMITSHM \
+ -Ii386 \