diff --git a/recipes/dev/rust/recipe.toml b/recipes/dev/rust/recipe.toml index 3bdc930fd..1197c373b 100644 --- a/recipes/dev/rust/recipe.toml +++ b/recipes/dev/rust/recipe.toml @@ -15,7 +15,10 @@ script = """ DYNAMIC_INIT HOST_STRIP=$STRIP # Linker flags for stage2 compiler (host -> target) -export LDFLAGS_x86_64_unknown_redox="${LDFLAGS}" +export LDFLAGS_x86_64_unknown_redox="${LDFLAGS}" # LLVM +export CARGO_TARGET_X86_64_UNKNOWN_REDOX_RUSTFLAGS="\ +-C link-arg=-L${COOKBOOK_SYSROOT}/lib \ +-C link-arg=-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib" # Don't poison the stage1 compiler (host -> host) unset AR AS CC CXX LD LDFLAGS NM OBJCOPY OBJDUMP RANLIB READELF RUSTFLAGS STRIP python3 "${COOKBOOK_SOURCE}/x.py" install \