diff options
author | tnn <tnn@pkgsrc.org> | 2021-07-22 16:09:46 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2021-07-22 16:09:46 +0000 |
commit | 6b0e953632d7498155794f324f9e75bc7041f449 (patch) | |
tree | 8231e95f5152a2da3c1fae3faa081513533ab241 /lang | |
parent | 6187ad5a96e9330c59111e37cb9918838df150f2 (diff) | |
download | pkgsrc-6b0e953632d7498155794f324f9e75bc7041f449.tar.gz |
rust/cargo.mk: always pass RUSTFLAGS into MAKE_ENV
This will allow to clean up a number of package Makefiles.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/rust/cargo.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/rust/cargo.mk b/lang/rust/cargo.mk index f46a040596b..0f902c1a9fe 100644 --- a/lang/rust/cargo.mk +++ b/lang/rust/cargo.mk @@ -1,4 +1,4 @@ -# $NetBSD: cargo.mk,v 1.26 2021/05/31 14:33:02 ryoon Exp $ +# $NetBSD: cargo.mk,v 1.27 2021/07/22 16:09:46 tnn Exp $ # # Common logic that can be used by packages that depend on cargo crates # from crates.io. This lets existing pkgsrc infrastructure fetch and verify @@ -74,6 +74,8 @@ DEFAULT_CARGO_ARGS= build --offline --release -j${_MAKE_JOBS_N} \ ${CARGO_FEATURES:S/ /,/Wg} CARGO_ARGS?= ${DEFAULT_CARGO_ARGS} +MAKE_ENV+= RUSTFLAGS=${RUSTFLAGS:Q} + .if !target(do-build) do-build: do-cargo-build .endif |