guix: link libgcc_s statically for Linux targets

This commit is contained in:
tobtoht
2025-11-10 15:13:40 +01:00
parent 8a53c96b12
commit 7ef82ebc4b

View File

@@ -296,7 +296,7 @@ esac
# LDFLAGS
case "$HOST" in
*linux-gnu*) HOST_LDFLAGS="-Wl,--as-needed -Wl,--dynamic-linker=$glibc_dynamic_linker -static-libstdc++" ;;
*linux-gnu*) HOST_LDFLAGS="-Wl,--as-needed -Wl,--dynamic-linker=$glibc_dynamic_linker -static-libstdc++ -static-libgcc" ;;
*mingw*) HOST_LDFLAGS="-Wl,--no-insert-timestamp" ;;
esac