pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/qemu Remove -march/-mcpu from CFLAGS to fix ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dfdc6e9ccb3e
branches:  trunk
changeset: 494009:dfdc6e9ccb3e
user:      xtraeme <xtraeme%pkgsrc.org@localhost>
date:      Wed May 18 13:07:32 2005 +0000

description:
Remove -march/-mcpu from CFLAGS to fix the build by using
BUILDLINK_TRANSFORM+= rm-optarg, fixes build when using these
flags.

diffstat:

 emulators/qemu/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r a9b952fcaff1 -r dfdc6e9ccb3e emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Wed May 18 12:16:53 2005 +0000
+++ b/emulators/qemu/Makefile   Wed May 18 13:07:32 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2005/05/07 15:01:45 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2005/05/18 13:07:32 xtraeme Exp $
 #
 
 DISTNAME=              qemu-0.7.0
@@ -27,6 +27,10 @@
 SUBST_SED.snd=         -e "s,/dev/dsp,${DEVOSSAUDIO},g"
 SUBST_MESSAGE.snd=     "Fixing hardcoded audio device."
 
+# Remove -march/-mcpu from CFLAGS, otherwise it will fail
+# to build in the SSE code.
+BUILDLINK_TRANSFORM+=  rm-optarg:-march rm-optarg:-mcpu
+
 .include "../../devel/SDL/buildlink3.mk"
 .include "../../mk/ossaudio.buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"



Home | Main Index | Thread Index | Old Index