diff options
author | tnn <tnn> | 2016-12-20 22:40:06 +0000 |
---|---|---|
committer | tnn <tnn> | 2016-12-20 22:40:06 +0000 |
commit | da8d583e361c0f947b07acac140d7fecfd53905b (patch) | |
tree | a534ee934bf59811af38887e114c8cd3ee795e76 /lang | |
parent | 71d440f71d3cd3ecd74da476483f98f26aff957c (diff) | |
download | pkgsrc-da8d583e361c0f947b07acac140d7fecfd53905b.tar.gz |
fix build on NetBSD/i386
Diffstat (limited to 'lang')
-rw-r--r-- | lang/libLLVM/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/libLLVM/Makefile b/lang/libLLVM/Makefile index 2ca9b5e0c24..1ddb787aad7 100644 --- a/lang/libLLVM/Makefile +++ b/lang/libLLVM/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2016/12/17 23:28:34 joerg Exp $ +# $NetBSD: Makefile,v 1.15 2016/12/20 22:40:06 tnn Exp $ DISTNAME= llvm-3.9.0.src PKGNAME= ${DISTNAME:S/llvm/libLLVM/:S/.src//} @@ -110,6 +110,11 @@ PLIST_SUBST+= LLVM_LIBNAME=${LLVM_LIBNAME} # automatically. CXXFLAGS+= -std=c++11 +# needs std::atomic with 64-bit CAS +.if ${MACHINE_ARCH} == "i386" +CXXFLAGS+= -march=i586 +.endif + # replacing config.guess is required even for cmake. # It is used to detect correct LLVM_HOST_TRIPLE, e.g. for NetBSD/evbarm. post-extract: |