summaryrefslogtreecommitdiff
path: root/games/sms_sdl/cflags_and_libz.diff
diff options
context:
space:
mode:
Diffstat (limited to 'games/sms_sdl/cflags_and_libz.diff')
-rw-r--r--games/sms_sdl/cflags_and_libz.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/games/sms_sdl/cflags_and_libz.diff b/games/sms_sdl/cflags_and_libz.diff
new file mode 100644
index 0000000000..cf74397198
--- /dev/null
+++ b/games/sms_sdl/cflags_and_libz.diff
@@ -0,0 +1,25 @@
+diff -Naur sms_sdl-0.9.4a-r7.1/sdl/Makefile sms_sdl-0.9.4a-r7.1.patched/sdl/Makefile
+--- sms_sdl-0.9.4a-r7.1/sdl/Makefile 2003-07-16 23:37:38.000000000 -0400
++++ sms_sdl-0.9.4a-r7.1.patched/sdl/Makefile 2009-02-05 17:39:28.000000000 -0500
+@@ -12,7 +12,7 @@
+ NAME = sms_sdl
+
+ CC = gcc
+-CFLAGS = `sdl-config --cflags` -O2
++CFLAGS = `sdl-config --cflags` $(OPTFLAGS)
+ DEFINES = -DLSB_FIRST -DX86_ASM
+ INCLUDES = -I. -I.. -I../cpu -I../sound
+ LIBS = `sdl-config --libs`
+@@ -22,9 +22,9 @@
+ ../cpu/z80.o ../sound/emu2413.o ../sound/sn76496.o
+
+ # (un)comment to enable ZIP support
+-#DEFINES += -DUSE_ZLIB
+-#LIBS += -Lz
+-#OBJECTS += unzip.o
++DEFINES += -DUSE_ZLIB
++LIBS += -lz
++OBJECTS += unzip.o
+
+
+ all: $(NAME)