pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust Fix build on Darwin



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0d0f2ba4f30b
branches:  trunk
changeset: 451465:0d0f2ba4f30b
user:      pho <pho%pkgsrc.org@localhost>
date:      Tue Apr 27 09:10:07 2021 +0000

description:
Fix build on Darwin

diffstat:

 lang/rust/Makefile |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r e6940211f846 -r 0d0f2ba4f30b lang/rust/Makefile
--- a/lang/rust/Makefile        Tue Apr 27 09:04:50 2021 +0000
+++ b/lang/rust/Makefile        Tue Apr 27 09:10:07 2021 +0000
@@ -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 @@
        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