svn commit: r327090 - head/devel/llvm
Baptiste Daroussin
bapt at FreeBSD.org
Thu Sep 12 17:02:54 UTC 2013
Author: bapt
Date: Thu Sep 12 17:02:54 2013
New Revision: 327090
URL: http://svnweb.freebsd.org/changeset/ports/327090
Log:
Fix build with clang+libc++ by enforcing the c++11 standard if the compiler is clang
Modified:
head/devel/llvm/Makefile
Modified: head/devel/llvm/Makefile
==============================================================================
--- head/devel/llvm/Makefile Thu Sep 12 16:55:27 2013 (r327089)
+++ head/devel/llvm/Makefile Thu Sep 12 17:02:54 2013 (r327090)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: llvm
-# Date created: 20 Nov 2005
-# Whom: Hye-Shik Chang
-#
+# Created by: Hye-Shik Chang
# $FreeBSD$
-#
PORTNAME= llvm
PORTVERSION= 3.2
@@ -26,11 +22,15 @@ BUILD_DEPENDS+= f2c:${PORTSDIR}/lang/f2c
CONFLICTS= llvm-devel-[23]* llvm31-3*
GNU_CONFIGURE= yes
-USE_GMAKE= yes
+USES= gmake perl5
USE_LDCONFIG= yes
-USE_PERL5= yes
USE_PYTHON_BUILD= yes
+_CCVERSION= ${CC} --version
+.if ${_CCVERSION:Mclang}
+USE_CXXSTD= c++11
+.endif
+
# Suggested tweaks from http://llvm.org/docs/Packaging.html
CONFIGURE_ARGS+= --enable-shared
MAKE_ARGS+= REQUIRES_RTTI=1
More information about the svn-ports-all
mailing list