summaryrefslogtreecommitdiff
path: root/emulators/qemu
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2005-05-18 13:07:32 +0000
committerxtraeme <xtraeme@pkgsrc.org>2005-05-18 13:07:32 +0000
commit16838069114fb968f9c1990ac7a962f07d272d19 (patch)
tree6a9a9fb15aef5eea8b3620b2b2a12f85d17fb342 /emulators/qemu
parentd86898ded6a62ceede9bfb3500ab870fd4b39434 (diff)
downloadpkgsrc-16838069114fb968f9c1990ac7a962f07d272d19.tar.gz
Remove -march/-mcpu from CFLAGS to fix the build by using
BUILDLINK_TRANSFORM+= rm-optarg, fixes build when using these flags.
Diffstat (limited to 'emulators/qemu')
-rw-r--r--emulators/qemu/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index b1521c1fcec..3e12a04156b 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -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_FILES.snd= audio/ossaudio.c
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"