pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/libLLVM fix build on NetBSD/i386



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b68f26acafca
branches:  trunk
changeset: 356178:b68f26acafca
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Tue Dec 20 22:40:06 2016 +0000

description:
fix build on NetBSD/i386

diffstat:

 lang/libLLVM/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 3db2eb22b468 -r b68f26acafca lang/libLLVM/Makefile
--- a/lang/libLLVM/Makefile     Tue Dec 20 21:09:08 2016 +0000
+++ b/lang/libLLVM/Makefile     Tue Dec 20 22:40:06 2016 +0000
@@ -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 @@
 # 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:



Home | Main Index | Thread Index | Old Index