From fe314d7b6af699159c3467dbb6e15b2538553bc2 Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Fri, 25 Jul 2025 05:00:21 +0000 Subject: [PATCH] Add RUSTFLAGS again --- recipes/dev/rust/recipe.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 \