svn commit: r375645 - head/devel/binutils
Baptiste Daroussin
bapt at FreeBSD.org
Fri Dec 26 18:23:54 UTC 2014
Author: bapt
Date: Fri Dec 26 18:23:53 2014
New Revision: 375645
URL: https://svnweb.freebsd.org/changeset/ports/375645
QAT: https://qat.redports.org/buildarchive/r375645/
Log:
Do not build gold if compiler is clang version lower to 3.4
Reported by: many
Modified:
head/devel/binutils/Makefile
Modified: head/devel/binutils/Makefile
==============================================================================
--- head/devel/binutils/Makefile Fri Dec 26 17:59:25 2014 (r375644)
+++ head/devel/binutils/Makefile Fri Dec 26 18:23:53 2014 (r375645)
@@ -24,7 +24,7 @@ OPTIONS_DEFINE= NLS
LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING3
LICENSE_FILE_LGPL3= ${WRKSRC}/COPYING3.LIB
-USES= bison gmake libtool tar:bzip2
+USES= bison gmake libtool tar:bzip2 compiler:env
GNU_CONFIGURE= yes
.if defined(PKGNAMEPREFIX)
@@ -53,10 +53,10 @@ OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
# Actual earliest version may differ slightly
-.if ${ARCH} != ia64 && ${ARCH} != mips && ${OSVERSION} >= 900044 && !defined(PKGNAMEPREFIX)
+.if ${ARCH} != ia64 && ${ARCH} != mips && ${OSVERSION} >= 900044 && !defined(PKGNAMEPREFIX) && (${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 34 || ${COMPILER_TYPE} == gcc)
CONFIGURE_ARGS+= --enable-gold --enable-plugins
PLIST_SUB+= GOLD=""
.else
@@ -87,4 +87,4 @@ post-install:
${LN} -fs ../../bin/${BUTARGET}-size ${STAGEDIR}${PREFIX}/${BUTARGET}/bin/size
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list