forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mednafen-0.9.38.7-cflags.patch
28 lines (27 loc) · 1.17 KB
/
mednafen-0.9.38.7-cflags.patch
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
--- configure.ac.orig
+++ configure.ac
@@ -80,25 +80,6 @@
AC_CHECK_LIB([z], [zlibVersion],[], AC_MSG_ERROR([*** zlib not found!]))
LIBS="$LIBS -lz"
-OPTIMIZER_FLAGS=""
-
-dnl -ffast-math removed January 12, 2013. Don't re-add it, nor any of its sub-options(ESPECIALLY not -funsafe-math-optimizations),
-dnl it messes up certain code(NES resampler, for example) under certain conditions and alignments of the great celestial squid.
-dnl
-dnl In fact, let's explicitly disable it here with -fno-fast-math.
-dnl
-dnl -fomit-frame-pointer is required for some x86 inline assembly to compile.
-dnl
-dnl November 28, 2014: Use -fwrapv unconditionally instead of -fno-strict-overflow, -fno-strict-overflow is buggy
-dnl and does not work as documented/implied.
-dnl
-AX_CFLAGS_GCC_OPTION([-fno-fast-math], OPTIMIZER_FLAGS)
-AX_CFLAGS_GCC_OPTION([-fno-unsafe-math-optimizations], OPTIMIZER_FLAGS)
-AX_CFLAGS_GCC_OPTION([-fno-aggressive-loop-optimizations], OPTIMIZER_FLAGS)
-AX_CFLAGS_GCC_OPTION([-fomit-frame-pointer], OPTIMIZER_FLAGS)
-AX_CFLAGS_GCC_OPTION([-fwrapv], OPTIMIZER_FLAGS)
-
-
WARNING_FLAGS=""
AX_CFLAGS_GCC_OPTION([-Wall], WARNING_FLAGS)
AX_CFLAGS_GCC_OPTION([-Wshadow], WARNING_FLAGS)