diff options
author | gdt <gdt@pkgsrc.org> | 2017-01-02 00:03:42 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2017-01-02 00:03:42 +0000 |
commit | b278845ad68308ec57f72af0e8f8bfcac049c7e8 (patch) | |
tree | 7a7f7cc220461d261cc03c220b310d3ef212966e /lang/llvm | |
parent | ee9bad642c5d6e0b64d4d08e7b7ad8e84a0aa8b0 (diff) | |
download | pkgsrc-b278845ad68308ec57f72af0e8f8bfcac049c7e8.tar.gz |
On i386, use -march=i586 for 64-bit CAS
This matches tnn's change to lang/libLLVM. No PKGREVISION; no change
on !i386 and on i386 this did not build before.
Diffstat (limited to 'lang/llvm')
-rw-r--r-- | lang/llvm/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lang/llvm/Makefile b/lang/llvm/Makefile index eafb81c5584..a74d8134a8e 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.11 2017/01/02 00:03:42 gdt 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 |