pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/multimedia/mplayer-share Use -mtune for gcc4, not -mcp...
details: https://anonhg.NetBSD.org/pkgsrc/rev/698853007b22
branches: trunk
changeset: 515217:698853007b22
user: wiz <wiz%pkgsrc.org@localhost>
date: Tue Jun 27 21:51:21 2006 +0000
description:
Use -mtune for gcc4, not -mcpu. Should fix PR 33754.
diffstat:
multimedia/mplayer-share/Makefile.cflags | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r f1ac6a49cf40 -r 698853007b22 multimedia/mplayer-share/Makefile.cflags
--- a/multimedia/mplayer-share/Makefile.cflags Tue Jun 27 20:18:08 2006 +0000
+++ b/multimedia/mplayer-share/Makefile.cflags Tue Jun 27 21:51:21 2006 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index