svn commit: r400366 - head/devel/compiler-rt-devel
Brooks Davis
brooks at FreeBSD.org
Wed Oct 28 00:42:33 UTC 2015
Author: brooks
Date: Wed Oct 28 00:42:31 2015
New Revision: 400366
URL: https://svnweb.freebsd.org/changeset/ports/400366
Log:
Fix the build when cc isn't a C++11 compiler.
Modified:
head/devel/compiler-rt-devel/Makefile
Modified: head/devel/compiler-rt-devel/Makefile
==============================================================================
--- head/devel/compiler-rt-devel/Makefile Wed Oct 28 00:39:03 2015 (r400365)
+++ head/devel/compiler-rt-devel/Makefile Wed Oct 28 00:42:31 2015 (r400366)
@@ -12,7 +12,7 @@ LLVM_SUFFIX= -devel
LLVM_PREFIX= ${PREFIX}/llvm${LLVM_SUFFIX}
LLVM_PORTDIR= ${.CURDIR}/../llvm${LLVM_SUFFIX}
-USES= cmake:outsource ninja
+USES= cmake:outsource compiler:c++11-lib ninja
BUILD_DEPENDS= llvm-config${LLVM_SUFFIX}:${PORTSDIR}/devel/llvm${LLVM_SUFFIX}
@@ -30,7 +30,7 @@ ONLY_FOR_ARCHS_REASON= plist contents no
.for arch in ${ONLY_FOR_ARCHS}
_arch=${arch}
-.if (${_arch} == ${ARCH} || (${_arch} == "i386" && ${ARCH} == "amd64"))
+.if (${_arch} == ${ARCH} || (${_arch} == "i386" && ${ARCH} == "amd64" && ${COMPILER_TYPE} != "gcc"))
ARCH_SUB:= ${ARCH_SUB} ${arch:tu}=
.else
ARCH_SUB:= ${ARCH_SUB} ${arch:tu}="@comment "
More information about the svn-ports-all
mailing list