pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/libatomic
Module Name: pkgsrc
Committed By: he
Date: Sun Mar 10 10:18:21 UTC 2024
Modified Files:
pkgsrc/devel/libatomic: buildlink3.mk
Log Message:
devel/libatomic: Add support for rust-based programs.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/libatomic/buildlink3.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/libatomic/buildlink3.mk
diff -u pkgsrc/devel/libatomic/buildlink3.mk:1.4 pkgsrc/devel/libatomic/buildlink3.mk:1.5
--- pkgsrc/devel/libatomic/buildlink3.mk:1.4 Tue Jun 28 11:31:46 2022
+++ pkgsrc/devel/libatomic/buildlink3.mk Sun Mar 10 10:18:21 2024
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.4 2022/06/28 11:31:46 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.5 2024/03/10 10:18:21 he Exp $
BUILDLINK_TREE+= libatomic
@@ -12,6 +12,11 @@ BUILDLINK_PKGSRCDIR.libatomic?= ../../d
BUILDLINK_LDADD.libatomic+= -latomic
BUILDLINK_LDFLAGS.libatomic?= ${BUILDLINK_LDADD.libatomic}
+# Make this work for rust as well:
+RUSTFLAGS+= -C link-arg=${BUILDLINK_LDADD.libatomic}
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.libatomic}/lib
+RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX}/lib
+
.include "../../mk/pthread.buildlink3.mk"
.endif
Home |
Main Index |
Thread Index |
Old Index