pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust185: fix install on Darwin
Module Name: pkgsrc-wip
Committed By: Adam Ciarciński <aciarcinski%teonite.com@localhost>
Pushed By: adam
Date: Tue Feb 25 07:53:54 2025 +0100
Changeset: c306ce6210a282cfb4488af357c1773cda413547
Modified Files:
rust185/Makefile
Log Message:
rust185: fix install on Darwin
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c306ce6210a282cfb4488af357c1773cda413547
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust185/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
diffs:
diff --git a/rust185/Makefile b/rust185/Makefile
index eaad908b29..145bb11db9 100644
--- a/rust185/Makefile
+++ b/rust185/Makefile
@@ -588,6 +588,10 @@ PATCH_BINARIES+= bin/rustdoc
PATCH_BINARIES+= bin/rustfmt
PATCH_BINARIES+= libexec/rust-analyzer-proc-macro-srv
+OPSYSVARS+= SOEXT
+SOEXT.Darwin= dylib
+SOEXT.*= so
+
do-install:
${RUN}${_ULIMIT_CMD} \
cd ${WRKSRC} && \
@@ -603,6 +607,12 @@ cmd="${PREFIX}/bin/patchelf ${FORCE_RPATH} --set-rpath ${PREFIX}/lib $$f"; \
fi; \
done
.endif
+.if ${OPSYS} == "Darwin"
+ cd ${DESTDIR}${PREFIX}/lib && \
+ for lib in rustlib/*/lib/libstd-*.${SOEXT}; do \
+ ${LN} -f $${lib} $${lib##*/}; \
+ done
+.endif
SUBST_CLASSES+= destdir
SUBST_STAGE.destdir= post-install
Home |
Main Index |
Thread Index |
Old Index