pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/libLLVM



Module Name:    pkgsrc
Committed By:   tnn
Date:           Tue Dec 20 22:40:06 UTC 2016

Modified Files:
        pkgsrc/lang/libLLVM: Makefile

Log Message:
fix build on NetBSD/i386


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/lang/libLLVM/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/libLLVM/Makefile
diff -u pkgsrc/lang/libLLVM/Makefile:1.14 pkgsrc/lang/libLLVM/Makefile:1.15
--- pkgsrc/lang/libLLVM/Makefile:1.14   Sat Dec 17 23:28:34 2016
+++ pkgsrc/lang/libLLVM/Makefile        Tue Dec 20 22:40:06 2016
@@ -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_LIBNAM
 # 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