pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust The patch which caused LLVM not to require 6...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/48ecc7b4e62b
branches:  trunk
changeset: 441940:48ecc7b4e62b
user:      he <he%pkgsrc.org@localhost>
date:      Sat Nov 14 18:16:16 2020 +0000

description:
The patch which caused LLVM not to require 64-bit atomics is no more,
so now we need -latomic on powerpc.

diffstat:

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

diffs (21 lines):

diff -r b34714df63de -r 48ecc7b4e62b lang/rust/Makefile
--- a/lang/rust/Makefile        Sat Nov 14 14:08:51 2020 +0000
+++ b/lang/rust/Makefile        Sat Nov 14 18:16:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.205 2020/11/14 12:44:02 ryoon Exp $
+# $NetBSD: Makefile,v 1.206 2020/11/14 18:16:16 he Exp $
 
 DISTNAME=      rustc-1.47.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -504,6 +504,11 @@
 DEPENDS+=      compat80>=0:../../emulators/compat80
 .endif
 
+.if (${MACHINE_ARCH} == "powerpc")
+# LLVM needs libatomic for 64-bit atomics on powerpc
+.include "../../devel/libatomic/buildlink3.mk"
+.endif
+
 .if (${OPSYS} == "NetBSD") && \
                ((${MACHINE_ARCH} == "i386")) \
        && (empty(OS_VERSION:M[012345678].*) || \



Home | Main Index | Thread Index | Old Index