summaryrefslogtreecommitdiffstats
path: root/scripts/install_copy_toolchain.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2010-08-11 08:44:55 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-08-11 09:39:06 +0200
commitcc274335ce4ad3e0efbe797e8884402f7f21d6af (patch)
tree5d595c159c5d9dd202cee60a1f5fbb63cd108c6d /scripts/install_copy_toolchain.sh
parent16a24efc2cdd71c7d6b7917eeed3c5df5b8c7e0b (diff)
downloadptxdist-cc274335ce4ad3e0efbe797e8884402f7f21d6af.tar.gz
ptxdist-cc274335ce4ad3e0efbe797e8884402f7f21d6af.tar.xz
[install_copy_toolchain] try harder to find toolchain libs
When we come across a linker script, we look for the referenced library in the same directory. This fails if e.g. the linker script is in <toolchain-sysroot>/usr/lib and the referenced library <toolchain-sysroot>/lib. To fix this we look for the referenced library with ptxd_get_lib_path(). It will find it in either directory. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/install_copy_toolchain.sh')
-rwxr-xr-xscripts/install_copy_toolchain.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index 794598a60..8a6769833 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -193,7 +193,7 @@ ptxd_install_toolchain_lib() {
script_lib="${sysroot}${script_lib}"
;;
*.so*)
- script_lib="${lib_dir}/${script_lib}"
+ script_lib="$(ptxd_get_lib_path "${script_lib}")"
;;
*)
continue