summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authordbj <dbj>2005-11-04 21:05:51 +0000
committerdbj <dbj>2005-11-04 21:05:51 +0000
commit0465877ef947feccdcf24027fbc4eda06146d8db (patch)
tree73f21dba747a1ad03fccbb661261a9dd98dff850 /emulators
parenta8f80a7a9df16c7f740c601d75555342a2bccfbb (diff)
downloadpkgsrc-0465877ef947feccdcf24027fbc4eda06146d8db.tar.gz
add check and fail on gcc4, which cannot be used with this version of qemu
Diffstat (limited to 'emulators')
-rw-r--r--emulators/qemu/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/emulators/qemu/Makefile b/emulators/qemu/Makefile
index 34ead297cba..b5425d9d751 100644
--- a/emulators/qemu/Makefile
+++ b/emulators/qemu/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/10/01 04:12:32 hubertf Exp $
+# $NetBSD: Makefile,v 1.19 2005/11/04 21:05:51 dbj Exp $
#
DISTNAME= qemu-0.7.2
@@ -31,6 +31,14 @@ SUBST_MESSAGE.snd= "Fixing hardcoded audio device."
# to build in the SSE code.
BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu
+.include "../../mk/compiler.mk"
+
+# qemu cannot yet use gcc 4, see the faq/mailing lists
+# (hint: use gcc_select on darwin/macos to choose gcc 3.3 instead)
+.if !empty(CC_VERSION:Mgcc-4*)
+PKG_FAIL_REASON+= "${PKGNAME} cannot use ${CC_VERSION}"
+.endif
+
post-install:
${INSTALL_DATA} ${FILESDIR}/Makefile.multinode-NetBSD \
${PREFIX}/share/doc/qemu