pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
term39: clang required for rust bindgen
Module Name: pkgsrc-wip
Committed By: Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By: vms
Date: Sun Dec 14 13:43:02 2025 +0100
Changeset: 8a6690a3a3bb2c7029da74e42cc9c144c1ff6c9f
Modified Files:
term39/Makefile
Log Message:
term39: clang required for rust bindgen
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8a6690a3a3bb2c7029da74e42cc9c144c1ff6c9f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
term39/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diffs:
diff --git a/term39/Makefile b/term39/Makefile
index 23923fdfcc..981d75b5ff 100644
--- a/term39/Makefile
+++ b/term39/Makefile
@@ -17,7 +17,7 @@ USE_TOOLS+= pkg-config
CARGO_NO_DEFAULT_FEATURES= yes
-.if ${OPSYS:M*BSD}
+.if ${OPSYS:M*BSD} || ${OPSYS} == "Darwin"
CARGO_FEATURES+= bsd
.elif ${OPSYS} == "Linux"
CARGO_FEATURES+= full
@@ -25,5 +25,11 @@ CARGO_FEATURES+= full
CARGO_FEATURES+= tty
.endif
+RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.clang}/lib
+RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.clang}/lib
+
+BUILDLINK_DEPMETHOD.clang= build
+.include "../../lang/clang/buildlink3.mk"
.include "../../lang/rust/cargo.mk"
+.include "../../mk/pam.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index