RUSTFLAGS_<target> didn't seem to work on Apple mac, so after poking around a bit and switching to CARGO_TARGET_<TARGET>_RUSTFLAGS, the linker was finally happy. The script crafts target using tr and converts all - to _ and then uppercases the whole thing to produce the correct env variable name.
RUSTFLAGS_<target>
didn't seem to work on Apple mac, so after poking around a bit and switching toCARGO_TARGET_<TARGET>_RUSTFLAGS
, the linker was finally happy. The script crafts target usingtr
and converts all-
to_
and then uppercases the whole thing to produce the correct env variable name.