Date: Thu, 12 Sep 2013 17:02:54 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r327090 - head/devel/llvm Message-ID: <201309121702.r8CH2sb2067811@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309121702.r8CH2sb2067811>