mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-21 08:42:23 +00:00
Set RUSTFLAGS like Mk/Uses/cargo.mk does to respect CC and LDFLAGS.
This commit is contained in:
parent
a77ea0c493
commit
1c73ac4c1d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=557175
@ -31,9 +31,11 @@ CONFIGURE_ARGS= --disable-Bsymbolic \
|
||||
--enable-vala
|
||||
# Make sure it uses the Rust toolchain from ports.
|
||||
CONFIGURE_ENV= CARGO=${LOCALBASE}/bin/cargo \
|
||||
RUSTC=${LOCALBASE}/bin/rustc
|
||||
RUSTC=${LOCALBASE}/bin/rustc \
|
||||
RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
|
||||
MAKE_ENV= CARGO_BUILD_JOBS=${MAKE_JOBS_NUMBER} \
|
||||
RUSTC=${LOCALBASE}/bin/rustc
|
||||
RUSTC=${LOCALBASE}/bin/rustc \
|
||||
RUSTFLAGS="${RUSTFLAGS} -C linker=${CC:Q} ${LDFLAGS:C/.+/-C link-arg=&/}"
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= check
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user