GH-113516: don't set `LDSHARED` when building for WASI (GH-115495)

3 files changed