aboutsummaryrefslogtreecommitdiffstats
path: root/target/toolchain/files
diff options
context:
space:
mode:
authorEneas U de Queiroz <cotequeiroz@gmail.com>2023-02-10 12:02:06 -0300
committerEneas U de Queiroz <cotequeiroz@gmail.com>2023-02-12 10:55:06 -0300
commited81acdcc2057be8eb0ec5d6d021f3df27999876 (patch)
treeb93bf0406697575d0807e99408b0c6dfbd834392 /target/toolchain/files
parent9a49e257d638b2bb84e050e26942f496c14fa6f5 (diff)
downloadupstream-ed81acdcc2057be8eb0ec5d6d021f3df27999876.tar.gz
upstream-ed81acdcc2057be8eb0ec5d6d021f3df27999876.tar.bz2
upstream-ed81acdcc2057be8eb0ec5d6d021f3df27999876.zip
toolchain: wrapper.sh: use --rpath-link
Use --rpath-link option instead of --rpath. The former is used only at link-time, while the latter is searched at run-time as well. Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
Diffstat (limited to 'target/toolchain/files')
-rwxr-xr-xtarget/toolchain/files/wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh
index 0b06343f09..4b3f8f911a 100755
--- a/target/toolchain/files/wrapper.sh
+++ b/target/toolchain/files/wrapper.sh
@@ -57,8 +57,8 @@ fi
case $TOOLCHAIN_PLATFORM in
gnu|glibc|uclibc|musl)
- GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
- LD_SYSROOT_FLAGS="-rpath=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
+ GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-rpath-link=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
+ LD_SYSROOT_FLAGS="-rpath-link=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
;;
*)
GCC_SYSROOT_FLAGS=""