Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2015 18:46:51 +0000 (UTC)
From:      Juergen Lock <nox@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r377449 - head/emulators/qemu
Message-ID:  <201501191846.t0JIkpNP078470@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nox
Date: Mon Jan 19 18:46:51 2015
New Revision: 377449
URL: https://svnweb.freebsd.org/changeset/ports/377449
QAT: https://qat.redports.org/buildarchive/r377449/

Log:
  Fix build on 10+/i386 for when gcc49 becomes default (and fix ALL_TARGETS
  on 10+/i386 while we're at it.)
  
  PR:		196855
  Submitted by:	gerald

Modified:
  head/emulators/qemu/Makefile

Modified: head/emulators/qemu/Makefile
==============================================================================
--- head/emulators/qemu/Makefile	Mon Jan 19 18:10:31 2015	(r377448)
+++ head/emulators/qemu/Makefile	Mon Jan 19 18:46:51 2015	(r377449)
@@ -14,8 +14,7 @@ MAINTAINER=	nox@FreeBSD.org
 COMMENT=	QEMU CPU Emulator
 
 HAS_CONFIGURE=	yes
-USE_GCC=	any
-USES=		gmake perl5
+USES=		gmake perl5 compiler:features
 USE_PERL5=	build
 PATCH_STRIP=	-p1
 MAKE_ENV+=	BSD_MAKE="${MAKE}"
@@ -39,6 +38,14 @@ OPTIONS_DEFAULT=	SDL GNUTLS CURL PCAP GN
 
 .include <bsd.port.pre.mk>
 
+.if ${ARCH} == "i386" && ${COMPILER_TYPE} == "clang"
+# gcc49 breaks target-i386 on i386, and gcc48 breaks ALL_TARGETS on i386:
+#	https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196855
+USE_GCC=	4.7
+.else
+USE_GCC=	any
+.endif
+
 .if empty(PORT_OPTIONS:MALL_TARGETS)
 CONFIGURE_ARGS+=	--target-list=i386-softmmu,x86_64-softmmu
 PLIST_SUB+=	ALLTARGETS="@comment "



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501191846.t0JIkpNP078470>