diff --git a/scripts/dev_cli.sh b/scripts/dev_cli.sh index 1470f61cf..4c5c70762 100755 --- a/scripts/dev_cli.sh +++ b/scripts/dev_cli.sh @@ -282,10 +282,10 @@ cmd_build() { [ $build = "release" ] && cargo_args+=("--release") cargo_args+=(--target "$target") - rustflags="" + rustflags="$RUSTFLAGS" target_cc="" if [ "$(uname -m)" = "aarch64" ] && [ "$libc" = "musl" ]; then - rustflags="-C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs" + rustflags="$rustflags -C link-arg=-lgcc -C link_arg=-specs -C link_arg=/usr/lib/aarch64-linux-musl/musl-gcc.specs" target_cc="musl-gcc" fi