Fix build on Darwin
This commit is contained in:
parent
e51795af84
commit
6f0a0a82a4
1 changed files with 7 additions and 1 deletions
|
@ -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} ;
|
||||
|
||||
|
|
Loading…
Reference in a new issue