From ff69958b017e8fabc4f9457b8d714ce67be54b46 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 17 Dec 2016 23:28:34 +0000 Subject: Explicitly build LLVM projects with -std=c++11, it doesn't get detected automatically in all cases. --- lang/libLLVM/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lang/libLLVM') 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: -- cgit v1.2.3