diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2015-02-21 19:31:58 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2015-02-21 19:31:58 +0800 |
commit | 74344b3d10196e8ff60ee7da5b6055703b6a906e (patch) | |
tree | 1fc15e93324ee19d2549bc9fb6e1d10a7cd66328 /lang/v8 | |
parent | 25ec21ded0a2bea48d10c934c5130de427fa70d7 (diff) | |
download | freebsd-ports-gnome-74344b3d10196e8ff60ee7da5b6055703b6a906e.tar.gz freebsd-ports-gnome-74344b3d10196e8ff60ee7da5b6055703b6a906e.tar.zst freebsd-ports-gnome-74344b3d10196e8ff60ee7da5b6055703b6a906e.zip |
- Fix build with Clang 3.6.0
- Use CXXFLAGS instead of CFLAGS
- Simplify CXXFLAGS: all supported Clang are 3.3+
Diffstat (limited to 'lang/v8')
-rw-r--r-- | lang/v8/Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lang/v8/Makefile b/lang/v8/Makefile index eb378737eb07..77afb4d505ef 100644 --- a/lang/v8/Makefile +++ b/lang/v8/Makefile @@ -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 |