Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 380809
Collapse All | Expand All

(-)snes9x-1.52-src.orig/unix/Makefile.in (-1 / +1 lines)
Lines 65-71 Link Here
65
	exit 1
65
	exit 1
66
66
67
snes9x: $(OBJECTS)
67
snes9x: $(OBJECTS)
68
	$(CCC) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
68
	$(CCC) $(LDFLAGS) $(INCLUDES) -o $@ $(OBJECTS) -lm @S9XLIBS@
69
69
70
../jma/s9x-jma.o: ../jma/s9x-jma.cpp
70
../jma/s9x-jma.o: ../jma/s9x-jma.cpp
71
	$(CCC) $(INCLUDES) -c $(CCFLAGS) -fexceptions $*.cpp -o $@
71
	$(CCC) $(INCLUDES) -c $(CCFLAGS) -fexceptions $*.cpp -o $@
(-)snes9x-1.52-src.orig/unix/configure.ac (-17 lines)
Lines 56-75 Link Here
56
# *** Execution begins here ***
56
# *** Execution begins here ***
57
# *****************************
57
# *****************************
58
58
59
# Remove -g and -O2 flags manually.
60
61
if test "x$CFLAGS" != "x"; then
62
	CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-g//'`"
63
	CFLAGS="`echo \"$CFLAGS\" | sed -e 's/-O2//'`"
64
fi
65
66
if test "x$CXXFLAGS" != "x"; then
67
	CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-g//'`"
68
	CXXFLAGS="`echo \"$CXXFLAGS\" | sed -e 's/-O2//'`"
69
fi
70
71
# Test what compiler flags we should use.
72
73
AC_ARG_ENABLE([debug],
59
AC_ARG_ENABLE([debug],
74
	[AS_HELP_STRING([--enable-debug],
60
	[AS_HELP_STRING([--enable-debug],
75
		[leave debug information in the final binary (default: no)])],
61
		[leave debug information in the final binary (default: no)])],
Lines 79-87 Link Here
79
	AC_S9X_COMPILER_FLAG([-g],  [g])
65
	AC_S9X_COMPILER_FLAG([-g],  [g])
80
	AC_S9X_COMPILER_FLAG([-O0], [o0])
66
	AC_S9X_COMPILER_FLAG([-O0], [o0])
81
else
67
else
82
	AC_S9X_COMPILER_FLAG([-O3], [o3], [
83
		AC_S9X_COMPILER_FLAG([-O2], [o2], [
84
			AC_S9X_COMPILER_FLAG([-O1], [o1])])])
85
	AC_S9X_COMPILER_FLAG([-fomit-frame-pointer], [omit_frame_pointer])
68
	AC_S9X_COMPILER_FLAG([-fomit-frame-pointer], [omit_frame_pointer])
86
fi
69
fi
87
70

Return to bug 380809