summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/llvm/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile
index eafb81c5584..9ba37067037 100644
--- a/lang/llvm/Makefile
+++ b/lang/llvm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2016/12/17 23:28:34 joerg Exp $
+# $NetBSD: Makefile,v 1.10.2.1 2017/01/02 14:40:11 bsiegert Exp $
#
# when updating this, please also update:
# devel/include-what-you-use
@@ -92,6 +92,11 @@ PLIST_SUBST+= SOEXT=${SOEXT}
# automatically.
CXXFLAGS+= -std=c++11
+# needs std::atomic with 64-bit CAS
+.if ${MACHINE_ARCH} == "i386"
+CXXFLAGS+= -march=i586
+.endif
+
.if ${OPSYS} == "Darwin"
.PHONY: fix-darwin-install-name
post-install: fix-darwin-install-name