diff options
author | ryoon <ryoon> | 2016-09-12 13:27:33 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2016-09-12 13:27:33 +0000 |
commit | 9e52e330f8f7ecfd24e9905f69741bbc39d055f0 (patch) | |
tree | 466aac0eb74156a18c6b92a27ee7b4d6b2941066 /lang/rust/Makefile | |
parent | 0566ab42465df9d3a1461bbda40d084e63695a09 (diff) | |
download | pkgsrc-9e52e330f8f7ecfd24e9905f69741bbc39d055f0.tar.gz |
Add NetBSD/amd64 support
This package must be built with pkgtools/cwrappers with USE_CWRAPPERS=yes.
Diffstat (limited to 'lang/rust/Makefile')
-rw-r--r-- | lang/rust/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile index 0c7ceeae7f8..46fe6cf653c 100644 --- a/lang/rust/Makefile +++ b/lang/rust/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2016/09/11 18:19:54 jperkin Exp $ +# $NetBSD: Makefile,v 1.3 2016/09/12 13:27:33 ryoon Exp $ DISTNAME= rustc-1.11.0-src PKGNAME= ${DISTNAME:S/rustc/rust/:S/-src//} @@ -55,6 +55,13 @@ CONFIGURE_ARGS+= --disable-jemalloc .endif # +# Under NetBSD, do not use DT_RUNPATH +# +.if ${OPSYS} == "NetBSD" +BUILDLINK_TRANSFORM+= rm:-Wl,--enable-new-dtags +.endif + +# # Can't use pkgsrc llvm on SunOS at the moment due to a relocation error. # .if ${OPSYS} != "SunOS" @@ -89,6 +96,8 @@ RUST_ARCH= x86_64-unknown-linux-gnu .elif !empty(MACHINE_PLATFORM:MSunOS-*-x86_64) RUST_ARCH= x86_64-sun-solaris SITES.${RUST_STAGE2}= https://us-east.manta.joyent.com/pkgsrc/public/tmp/ +.elif !empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) +RUST_ARCH= x86_64-unknown-netbsd .else NOT_FOR_PLATFORM+= ${MACHINE_PLATFORM} .endif |