summaryrefslogtreecommitdiff
path: root/lang/libLLVM
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2016-12-17 23:28:34 +0000
committerjoerg <joerg@pkgsrc.org>2016-12-17 23:28:34 +0000
commitff69958b017e8fabc4f9457b8d714ce67be54b46 (patch)
tree4af1b29627c313233c15133be18f68e86cb923dc /lang/libLLVM
parent4ffce295cc55f4df61b5393b57194c0e4c78c84a (diff)
downloadpkgsrc-ff69958b017e8fabc4f9457b8d714ce67be54b46.tar.gz
Explicitly build LLVM projects with -std=c++11, it doesn't get detected
automatically in all cases.
Diffstat (limited to 'lang/libLLVM')
-rw-r--r--lang/libLLVM/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/libLLVM/Makefile b/lang/libLLVM/Makefile
index 3196870e5fc..2ca9b5e0c24 100644
--- a/lang/libLLVM/Makefile
+++ b/lang/libLLVM/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2016/11/14 20:15:33 ryoon Exp $
+# $NetBSD: Makefile,v 1.14 2016/12/17 23:28:34 joerg Exp $
DISTNAME= llvm-3.9.0.src
PKGNAME= ${DISTNAME:S/llvm/libLLVM/:S/.src//}
@@ -106,6 +106,10 @@ PLIST_SUBST+= LLVM_LIBNAME=${LLVM_LIBNAME}
.include "options.mk"
+# At least LLVM 3.9.0 and subprojects don't correctly add C++11 flags
+# automatically.
+CXXFLAGS+= -std=c++11
+
# replacing config.guess is required even for cmake.
# It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm.
post-extract: