summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share
diff options
context:
space:
mode:
authorwiz <wiz>2006-06-27 21:51:21 +0000
committerwiz <wiz>2006-06-27 21:51:21 +0000
commita939bbeaf4aab531490ccd23541c4a028d3bd7a0 (patch)
tree7f4cd329eb52f9ed66dad392cb0252cbb1199f38 /multimedia/mplayer-share
parentf18828fd52a1e3d58d5339e7ea3f66cebc2b81ae (diff)
downloadpkgsrc-a939bbeaf4aab531490ccd23541c4a028d3bd7a0.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.cflags9
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