diff options
author | vanilla <vanilla@FreeBSD.org> | 2013-05-05 21:51:08 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2013-05-05 21:51:08 +0800 |
commit | 074b34562618a24bd4f92218431c82e5091215af (patch) | |
tree | 47442249de29b07e46df2dff96e41e994f42a2a7 | |
parent | 8b21364d5f7c97600ba7923897e637305f3323c1 (diff) | |
download | freebsd-ports-gnome-074b34562618a24bd4f92218431c82e5091215af.tar.gz freebsd-ports-gnome-074b34562618a24bd4f92218431c82e5091215af.tar.zst freebsd-ports-gnome-074b34562618a24bd4f92218431c82e5091215af.zip |
Fix build with clang < 3.3.
-rw-r--r-- | lang/v8/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/v8/Makefile b/lang/v8/Makefile index bfce13edfb7e..e6fdee71d7e4 100644 --- a/lang/v8/Makefile +++ b/lang/v8/Makefile @@ -21,8 +21,12 @@ MAKE_ARGS= library=shared .include <bsd.port.pre.mk> .if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" || ${OSVERSION} >= 1000024 +_CLANG!= clang --version | ${HEAD} -1 | ${SED} -e 's/.*clang version \([0-9]\)\.\([0-9]\).*/\1\2/' MAKE_ENV+= LINK=clang++ -CFLAGS+= -Wno-unused-private-field -Wno-nested-anon-types +CFLAGS+= -Wno-unused-private-field +.if ${_CLANG} >= 33 +CFLAGS+= -Wno-nested-anon-types +.endif .else MAKE_ARGS+= strictaliasing=off USE_GCC= any |