diff options
author | dbj <dbj> | 2005-11-04 21:05:51 +0000 |
---|---|---|
committer | dbj <dbj> | 2005-11-04 21:05:51 +0000 |
commit | 0465877ef947feccdcf24027fbc4eda06146d8db (patch) | |
tree | 73f21dba747a1ad03fccbb661261a9dd98dff850 | |
parent | a8f80a7a9df16c7f740c601d75555342a2bccfbb (diff) | |
download | pkgsrc-0465877ef947feccdcf24027fbc4eda06146d8db.tar.gz |
add check and fail on gcc4, which cannot be used with this version of qemu
-rw-r--r-- | emulators/qemu/Makefile | 10 |
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 |