freebsd-ports/games/qudos/files/patch-Makefile
Alexey Dokuchaev 4f2e070292 - Remove -O3 and unsupported -fexpensive-optimizations from CFLAGS
- Add -fcommon to unbreak the build against Clang 11 and GCC 10

Reported by:	pkg-fallout
2020-08-29 14:44:55 +00:00

15 lines
454 B
Text

--- Makefile.orig 2006-06-10 16:31:19 UTC
+++ Makefile
@@ -109,10 +109,9 @@ else
ifeq ($(TYPE),profile)
CFLAGS+= -pg
else
-CFLAGS+= -O3 -ffast-math -funroll-loops -fomit-frame-pointer \
- -fexpensive-optimizations
+CFLAGS+= -fcommon -ffast-math -funroll-loops -fomit-frame-pointer
ifeq ($(ARCH),i386)
-CFLAGS+= -falign-loops=2 -falign-jumps=2 -falign-functions=2 \
+CFLAGS+= -falign-functions=2 \
-fno-strict-aliasing
endif
endif