Use GCC 7 instead of GCC 5 when the base system doesn't have libc++.

We'd use USE_GCC=yes, but GCC 8 doesn't like the obsolete C++ in this
obsolete codebase.

Requested by:	gerald
This commit is contained in:
Brooks Davis 2019-05-15 14:17:24 +00:00
parent 2b575568ff
commit ef43f81784
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=501709

View file

@ -2,7 +2,7 @@
PORTNAME= llvm
DISTVERSION= 4.0.1
PORTREVISION= 13
PORTREVISION= 14
CATEGORIES= devel lang
MASTER_SITES= http://llvm.org/${PRE_}releases/${LLVM_RELEASE}/${RCDIR}
PKGNAMESUFFIX= ${LLVM_SUFFIX}
@ -190,9 +190,9 @@ EXTRAS_LIBS= libclangApplyReplacements \
libmodernizeCore
EXTRAS_PATTERN= ${EXTRAS_COMMANDS:tW:C/ */|/g}|${EXTRAS_LIBS:tW:C/ */|/g}
# Force GCC 5 on non-clang systems because GCC 8 won't compile this code.
# Force GCC 7 on non-clang systems because GCC 8 won't compile this code.
.if exists(/usr/lib/libstdc++.so)
USE_GCC= 5
USE_GCC= 7
.endif
.include <bsd.port.options.mk>