1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-29 22:07:35 +00:00

Ports: Set $LD for Clang, GCC and host in .hosted_defs.sh

Sets `$LD` to `$HOST_LD` in `.port_include.sh` if it is defined as well,
else it will be set to `ld`.

Makes libiconv build with the Clang toolchain.

This also impacts other ports when building them with the Clang
toolchain, and might result in more ports building correctly.
This commit is contained in:
EWouters 2022-12-31 19:40:19 +01:00 committed by Andrew Kaster
parent 401bc13776
commit 5f87c3022c
2 changed files with 4 additions and 0 deletions

View file

@ -64,6 +64,7 @@ enable_ccache
host_env() {
export CC="${HOST_CC}"
export CXX="${HOST_CXX}"
export LD="${HOST_LD}"
export AR="${HOST_AR}"
export RANLIB="${HOST_RANLIB}"
export PATH="${HOST_PATH}"