pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/rust rust/cargo.mk: always pass RUSTFLAGS into MA...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/38b2a2a1bbff
branches:  trunk
changeset: 456229:38b2a2a1bbff
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Thu Jul 22 16:09:46 2021 +0000

description:
rust/cargo.mk: always pass RUSTFLAGS into MAKE_ENV

This will allow to clean up a number of package Makefiles.

diffstat:

 lang/rust/cargo.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 6c5c08650c46 -r 38b2a2a1bbff lang/rust/cargo.mk
--- a/lang/rust/cargo.mk        Thu Jul 22 15:59:21 2021 +0000
+++ b/lang/rust/cargo.mk        Thu Jul 22 16:09:46 2021 +0000
@@ -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 @@
                          ${CARGO_FEATURES:S/ /,/Wg}
 CARGO_ARGS?=           ${DEFAULT_CARGO_ARGS}
 
+MAKE_ENV+=             RUSTFLAGS=${RUSTFLAGS:Q}
+
 .if !target(do-build)
 do-build: do-cargo-build
 .endif



Home | Main Index | Thread Index | Old Index