pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/rust



Module Name:    pkgsrc
Committed By:   minskim
Date:           Wed Nov 20 19:07:13 UTC 2019

Modified Files:
        pkgsrc/lang/rust: Makefile

Log Message:
lang/rust: Fix install_name on Darwin


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 pkgsrc/lang/rust/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/rust/Makefile
diff -u pkgsrc/lang/rust/Makefile:1.130 pkgsrc/lang/rust/Makefile:1.131
--- pkgsrc/lang/rust/Makefile:1.130     Wed Nov 20 09:53:13 2019
+++ pkgsrc/lang/rust/Makefile   Wed Nov 20 19:07:12 2019
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.130 2019/11/20 09:53:13 he Exp $
+# $NetBSD: Makefile,v 1.131 2019/11/20 19:07:12 minskim Exp $
 
 DISTNAME=      rustc-1.39.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -360,6 +360,16 @@ do-install:
 GENERATE_PLIST+=       find ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \
                        sed 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ;
 
+.if ${OPSYS} == "Darwin"
+.PHONY: fix-darwin-install-name
+post-install: fix-darwin-install-name
+fix-darwin-install-name:
+       for f in ${DESTDIR}${PREFIX}/lib/librustc_macros-*.dylib \
+                ${DESTDIR}${PREFIX}/lib/rustlib/${RUST_ARCH}/lib/librustc_macros-*.dylib; do \
+               install_name_tool -id `${ECHO} $$f | ${SED} -e 's,${DESTDIR},,g'` $$f; \
+       done
+.endif
+
 # Create a relocatable stage2 bootstrap from the bits we just built that can be
 # used to build the next version of rust.  Currently only tested on SmartOS.
 #



Home | Main Index | Thread Index | Old Index