1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
--- snes9x-1.54.1/gtk/configure.ac
+++ snes9x-1.54.1/gtk/configure.ac
@@ -33,7 +33,7 @@
AM_GLIB_GNU_GETTEXT
-snes9xlocaledir='${prefix}/${DATADIRNAME}/locale'
+snes9xlocaledir='/usr/share/locale'
AC_SUBST(snes9xlocaledir)
AC_ARG_WITH(debug,
--- snes9x-1.54.1/unix/configure.ac
+++ snes9x-1.54.1/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
--- snes9x-1.54.1/unix/Makefile.in
+++ snes9x-1.54.1/unix/Makefile.in
@@ -47,7 +47,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 $@
|