svn commit: r317413 - head/lang/v8
Vanilla I. Shu
vanilla at FreeBSD.org
Sun May 5 13:51:09 UTC 2013
Author: vanilla
Date: Sun May 5 13:51:08 2013
New Revision: 317413
URL: http://svnweb.freebsd.org/changeset/ports/317413
Log:
Fix build with clang < 3.3.
Modified:
head/lang/v8/Makefile
Modified: head/lang/v8/Makefile
==============================================================================
--- head/lang/v8/Makefile Sun May 5 13:49:11 2013 (r317412)
+++ head/lang/v8/Makefile Sun May 5 13:51:08 2013 (r317413)
@@ -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
More information about the svn-ports-all
mailing list