diff options
author | danfe <danfe@FreeBSD.org> | 2013-09-06 19:19:51 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-09-06 19:19:51 +0800 |
commit | 5189b8321d3e628d65828f6b0ed9b12d32a3e4a1 (patch) | |
tree | b71a99b380f71590d80f8e159c870d2d46b81b87 | |
parent | 46dbe7d5b6ea51bee50af626679e1e507ffa7384 (diff) | |
download | freebsd-ports-gnome-5189b8321d3e628d65828f6b0ed9b12d32a3e4a1.tar.gz freebsd-ports-gnome-5189b8321d3e628d65828f6b0ed9b12d32a3e4a1.tar.zst freebsd-ports-gnome-5189b8321d3e628d65828f6b0ed9b12d32a3e4a1.zip |
Change bogus optimization option -O6 to a more sane -O3 to unbreak the build
against Clang.
Reported by: pkg-fallout
-rw-r--r-- | games/cleanq3/files/patch-code-unix-Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/cleanq3/files/patch-code-unix-Makefile b/games/cleanq3/files/patch-code-unix-Makefile index ac3078f440c1..d44232d388f2 100644 --- a/games/cleanq3/files/patch-code-unix-Makefile +++ b/games/cleanq3/files/patch-code-unix-Makefile @@ -61,9 +61,9 @@ -GL_CFLAGS = -I$(MESADIR)/include -I/usr/X11R6/include +ifdef OPTIMIZED_CFLAGS + ifeq ($(ARCH),i386) -+RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -fomit-frame-pointer -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce ++RELEASE_CFLAGS=$(BASE_CFLAGS) -O3 -fomit-frame-pointer -pipe -ffast-math -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -fstrength-reduce + else -+RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations ++RELEASE_CFLAGS=$(BASE_CFLAGS) -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations + endif +endif |