diff options
author | Simon Barner <barner@FreeBSD.org> | 2005-11-19 22:04:39 +0800 |
---|---|---|
committer | Simon Barner <barner@FreeBSD.org> | 2005-11-19 22:04:39 +0800 |
commit | a50ad9fab154b9acf5253517888c412b55f8540f (patch) | |
tree | 14a5a117552239a6cc576b741fa0bf360c83dfb9 /games | |
parent | decf7a76c8e244b57ec7cc28a0bdb8af2c79b0ab (diff) | |
download | freebsd-ports-gnome-a50ad9fab154b9acf5253517888c412b55f8540f.tar.gz freebsd-ports-gnome-a50ad9fab154b9acf5253517888c412b55f8540f.tar.zst freebsd-ports-gnome-a50ad9fab154b9acf5253517888c412b55f8540f.zip |
Really fix build on 6.0+: Use CFLAGS="-O -pipe" because -fno-strict-aliasing
(default since FreeBSD 6.0) produces non-working code for the `vcc' tool that
is needed during the build (it dumps core).
However, the optimizations that can be enabled with the WITH_OPTIMIZIED_CFLAGS
work just fine.
Reported by: pointyhat via kris
Diffstat (limited to 'games')
-rw-r--r-- | games/vavoom/Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/games/vavoom/Makefile b/games/vavoom/Makefile index a7778f940abb..f71db4f06cf8 100644 --- a/games/vavoom/Makefile +++ b/games/vavoom/Makefile @@ -47,6 +47,13 @@ SUB_LIST= "PREFIX=${PREFIX}" "PORTSDIR=${PORTSDIR}" .include <bsd.port.pre.mk> +# -fno-strict-aliasing (default on FreeBSD 6.0+) produces run-working +# code for `vcc', so use a more conservative setting here +.if (${OSVERSION} >= 600000) +CFLAGS= -O -pipe +CXXFLAGS= -O -pipe +.endif + pre-everything:: @${ECHO_CMD} "" .ifndef (WITH_OPENAL) |