From 477dbccd724e6e6e8c84b6b8eda9f3050b45f218 Mon Sep 17 00:00:00 2001 From: dbj Date: Fri, 4 Nov 2005 21:05:51 +0000 Subject: add check and fail on gcc4, which cannot be used with this version of qemu --- emulators/qemu/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'emulators/qemu') 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 -- cgit v1.2.3