rust: drop KISS_ROOT usage

This commit is contained in:
illiliti 2022-03-28 13:46:10 +03:00 committed by Wolf Gupta
parent 955c676064
commit 0280837b03
1 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,8 @@ EOF
# Workaround to get Rust to build in llvm-only environments.
# libgcc_s.so is needed for Rust's bootstrap binaries, on llvm-only systems
# this library does not exist. This hack creates it as alias to libunwind.
case $("$CC" -print-file-name=libunwind.so) in */*)
libunwind_path=$("$CC" -print-file-name=libunwind.so)
case $libunwind_path in */*)
printf 'llvm-libunwind = "system"\n' >> config.toml
mkdir -p libgcc
@ -86,7 +87,7 @@ case $("$CC" -print-file-name=libunwind.so) in */*)
printf 'INPUT(-lunwind)\n' > \
libgcc/libgcc_s.so
ln -sf "$KISS_ROOT/usr/lib/libunwind.so.1" \
ln -sf "$libunwind_path" \
libgcc/libgcc_s.so.1
export \