summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-14 17:15:15 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-14 17:15:15 +0000
commit705284e97477bb647dcfdf5c673b2318a310a224 (patch)
tree6bdba4a9465be45be0036b8f630e174a1b8821f8 /games-emulation/snes9x/files
parentalpha/arm/ia64/s390/sh/sparc stable wrt #300145 (diff)
downloadgentoo-2-705284e97477bb647dcfdf5c673b2318a310a224.tar.gz
gentoo-2-705284e97477bb647dcfdf5c673b2318a310a224.tar.bz2
gentoo-2-705284e97477bb647dcfdf5c673b2318a310a224.zip
Version bump wrt #254468 by Wizzleby.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'games-emulation/snes9x/files')
-rw-r--r--games-emulation/snes9x/files/snes9x-1.52-build.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/snes9x-1.52-build.patch b/games-emulation/snes9x/files/snes9x-1.52-build.patch
new file mode 100644
index 000000000000..8c3880f1af6b
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-1.52-build.patch
@@ -0,0 +1,44 @@
+--- unix/configure.ac
++++ unix/configure.ac
+@@ -56,20 +56,6 @@
+ # *** Execution begins here ***
+ # *****************************
+
+-# Remove -g and -O2 flags manually.
+-
+-if test "x$CFLAGS" != "x"; then
+- CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-g//'`"
+- CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-O2//'`"
+-fi
+-
+-if test "x$CXXFLAGS" != "x"; then
+- CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-g//'`"
+- CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-O2//'`"
+-fi
+-
+-# Test what compiler flags we should use.
+-
+ AC_ARG_ENABLE([debug],
+ [AS_HELP_STRING([--enable-debug],
+ [leave debug information in the final binary (default: no)])],
+@@ -79,9 +65,6 @@
+ AC_S9X_COMPILER_FLAG([-g], [g])
+ AC_S9X_COMPILER_FLAG([-O0], [o0])
+ else
+- AC_S9X_COMPILER_FLAG([-O3], [o3], [
+- AC_S9X_COMPILER_FLAG([-O2], [o2], [
+- AC_S9X_COMPILER_FLAG([-O1], [o1])])])
+ AC_S9X_COMPILER_FLAG([-fomit-frame-pointer], [omit_frame_pointer])
+ fi
+
+--- unix/Makefile.in
++++ unix/Makefile.in
+@@ -65,7 +65,7 @@
+ exit 1
+
+ snes9x: $(OBJECTS)
+- $(CCC) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
++ $(CCC) $(LDFLAGS) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
+
+ ../jma/s9x-jma.o: ../jma/s9x-jma.cpp
+ $(CCC) $(INCLUDES) -c $(CCFLAGS) -fexceptions $*.cpp -o $@