summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-04-07 15:47:14 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-12-17 15:13:42 +0100
commit328a944735c7cd5501405d598371c6984f2dc27b (patch)
tree2a2beeb6a11a2f8d9a5f77fecf889eb7aa70c1c0
parentfc6829392066c5947660d6c496e20b645717d75b (diff)
downloadptxdist-328a944735c7cd5501405d598371c6984f2dc27b.tar.gz
ptxdist-328a944735c7cd5501405d598371c6984f2dc27b.tar.xz
install_copy_toolchain: handle linker scripts with absolute paths including sysroot
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rwxr-xr-xscripts/install_copy_toolchain.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index 0f21fce36..3d5c7aac6 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -189,7 +189,9 @@ ptxd_install_toolchain_lib() {
# deal with relative and absolute libs
case "${script_lib}" in
/*.so*)
- script_lib="${sysroot}${script_lib}"
+ if [ "${script_lib#${sysroot}}" = "${script_lib}" ]; then
+ script_lib="${sysroot}${script_lib}"
+ fi
;;
*.so*)
script_lib="$(ptxd_get_lib_path "${script_lib}")"