mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-02 20:32:22 +00:00
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>
This commit is contained in:
parent
9a49e257d6
commit
ed81acdcc2
@ -57,8 +57,8 @@ fi
|
|||||||
|
|
||||||
case $TOOLCHAIN_PLATFORM in
|
case $TOOLCHAIN_PLATFORM in
|
||||||
gnu|glibc|uclibc|musl)
|
gnu|glibc|uclibc|musl)
|
||||||
GCC_SYSROOT_FLAGS="--sysroot=$TOOLCHAIN_SYSROOT -Wl,-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=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
|
LD_SYSROOT_FLAGS="-rpath-link=$TOOLCHAIN_SYSROOT/lib:$TOOLCHAIN_SYSROOT/usr/lib"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
GCC_SYSROOT_FLAGS=""
|
GCC_SYSROOT_FLAGS=""
|
||||||
|
Loading…
Reference in New Issue
Block a user