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:   pho
Date:           Tue Apr 27 09:10:07 UTC 2021

Modified Files:
        pkgsrc/lang/rust: Makefile

Log Message:
Fix build on Darwin


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 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.234 pkgsrc/lang/rust/Makefile:1.235
--- pkgsrc/lang/rust/Makefile:1.234     Sat Apr 24 08:27:59 2021
+++ pkgsrc/lang/rust/Makefile   Tue Apr 27 09:10:07 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.234 2021/04/24 08:27:59 schmonz Exp $
+# $NetBSD: Makefile,v 1.235 2021/04/27 09:10:07 pho Exp $
 
 DISTNAME=      rustc-1.50.0-src
 PKGNAME=       ${DISTNAME:S/rustc/rust/:S/-src//}
@@ -464,6 +464,12 @@ fix-darwin-install-name:
        done
 .endif
 
+.if !empty(MACHINE_PLATFORM:MDarwin-*-*)
+# MacOS X 10.7 is the oldest supported version. See
+# ${WRKSRC}/src/bootstrap/lib.rs
+MAKE_ENV+=     MACOSX_DEPLOYMENT_TARGET="10.7"
+.endif
+
 GENERATE_PLIST+=       ${FIND} ${DESTDIR}${PREFIX} \( -type f -o -type l \) -print | \
                        ${SED} -e 's,${DESTDIR}${PREFIX}/,,' | ${SORT} ;
 



Home | Main Index | Thread Index | Old Index