1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Rework previous commit. The problem is not clang 3.3 but rather the fact that

with 1000024 CC became 'cc' rather than 'clang'.
This commit is contained in:
Emanuel Haupt 2013-05-28 09:27:19 +00:00
parent 16bdd1c586
commit 794b49d028
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319300

View File

@ -28,16 +28,11 @@ OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
# we could be on HEAD where CC is in fact clang 3.3 but since we have no
# __FreeBSD_version tag from when the 3.3 import happened we have to do some
# probing
#
.if(${OSVERSION} >= 1000000)
_CLANG!= cc --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/'
CFLAGS+= -Wno-unused-comparison
.if(${OSVERSION} >= 1000024)
CCISCLANG!= ${CC} --version | ${HEAD} -1 | ${GREP} 'clang'
.endif
.if ${CC} == clang
.if ${CC} == clang || defined(CCISCLANG)
CFLAGS+= -Wno-unused-comparison
.endif