Skip to content

Commit 8c660f2

Browse files
rich-gSam Liddicott
authored and
Sam Liddicott
committed
Fix incorrect LD/TARGET_LD env vars
The env vars LD and TARGET_LD are exported, but incorrectly refer to a script that doesn't exist (probably a typo). Fix the typo to refer to the proper scripts. Fixes rust-embedded#128
1 parent 25f5f5c commit 8c660f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/cargo.bbclass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ cargo_do_compile() {
116116
export TARGET_CXX="${WRAPPER_DIR}/cxx-wrapper.sh"
117117
export CC="${WRAPPER_DIR}/cc-native-wrapper.sh"
118118
export CXX="${WRAPPER_DIR}/cxx-native-wrapper.sh"
119-
export TARGET_LD="${WRAPPER_DIR}/ld-wrapper.sh"
120-
export LD="${WRAPPER_DIR}/ld-native-wrapper.sh"
119+
export TARGET_LD="${WRAPPER_DIR}/linker-wrapper.sh"
120+
export LD="${WRAPPER_DIR}/linker-native-wrapper.sh"
121121
export PKG_CONFIG_ALLOW_CROSS="1"
122122
export LDFLAGS=""
123123
export RUSTFLAGS="${RUSTFLAGS}"

0 commit comments

Comments
 (0)