mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
- Fix build with Clang 3.6.0
- Use CXXFLAGS instead of CFLAGS - Simplify CXXFLAGS: all supported Clang are 3.3+
This commit is contained in:
parent
d91e95f155
commit
039218878a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379501
@ -32,14 +32,14 @@ python_CMD= ${PYTHON_CMD}
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${COMPILER_TYPE} == clang
|
||||
CFLAGS+= -Wno-unused-private-field
|
||||
CXXFLAGS+= -Wno-nested-anon-types -Wno-unused-function -Wno-unused-private-field
|
||||
MAKE_ENV+= LINK=clang++
|
||||
.if ${COMPILER_VERSION} >= 33
|
||||
CFLAGS+= -Wno-nested-anon-types -Wno-unused-function
|
||||
.if ${COMPILER_VERSION} >= 34
|
||||
CFLAGS+= -Wno-unused-const-variable
|
||||
CXXFLAGS+= -Wno-unused-const-variable
|
||||
.if ${COMPILER_VERSION} >= 35
|
||||
CFLAGS+= -Wno-tautological-undefined-compare
|
||||
CXXFLAGS+= -Wno-tautological-undefined-compare
|
||||
.if ${COMPILER_VERSION} >= 36
|
||||
CXXFLAGS+= -Wno-unused-local-typedef
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user