diff options
author | wiz <wiz@pkgsrc.org> | 2006-06-27 21:51:21 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-06-27 21:51:21 +0000 |
commit | ed0e2a5570b4d43361a9af004ba532f35fe228a1 (patch) | |
tree | 7f4cd329eb52f9ed66dad392cb0252cbb1199f38 /multimedia/mplayer-share | |
parent | b6cd706391f1f7d47ae9b2a992a179524ba88646 (diff) | |
download | pkgsrc-ed0e2a5570b4d43361a9af004ba532f35fe228a1.tar.gz |
Use -mtune for gcc4, not -mcpu. Should fix PR 33754.
Diffstat (limited to 'multimedia/mplayer-share')
-rw-r--r-- | multimedia/mplayer-share/Makefile.cflags | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/multimedia/mplayer-share/Makefile.cflags b/multimedia/mplayer-share/Makefile.cflags index 78ddb83a652..e417fc8dd62 100644 --- a/multimedia/mplayer-share/Makefile.cflags +++ b/multimedia/mplayer-share/Makefile.cflags @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.cflags,v 1.2 2005/06/02 16:00:56 dillo Exp $ +# $NetBSD: Makefile.cflags,v 1.3 2006/06/27 21:51:21 wiz Exp $ # This must be included after everything else to truly clear ${CFLAGS} # in the non-runtime-cpu-detection case. If ${CFLAGS} is non-empty, the @@ -10,7 +10,14 @@ # is nearly optimal for K6-2 as well. Anything slowler will still run # (but would probably benefit greatly from turning off the run-time # cpu detection). + +. include "../../mk/compiler.mk" + +. if !empty(CC_VERSION:Mgcc-4*) +CFLAGS= -O3 -ffast-math -fomit-frame-pointer -mtune=pentiumpro +. else CFLAGS= -O3 -ffast-math -fomit-frame-pointer -mcpu=pentiumpro +. endif . else CFLAGS= -O3 -ffast-math -fomit-frame-pointer . endif |