summaryrefslogtreecommitdiffstats
path: root/scripts/install_copy_toolchain.sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2008-01-23 15:02:35 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2008-01-23 15:02:35 +0000
commit9c48d391affeaf5c7cebc2a1ac602c4c90befa69 (patch)
tree63ca84747d89757010201053923e5e78bdb5a7f1 /scripts/install_copy_toolchain.sh
parente6916495e6de5b102c94e56c85eff0e2d5b99525 (diff)
downloadptxdist-9c48d391affeaf5c7cebc2a1ac602c4c90befa69.tar.gz
ptxdist-9c48d391affeaf5c7cebc2a1ac602c4c90befa69.tar.xz
* scripts/install_copy_toolchain.sh:
This patch fixes the handling of multiple slashes in linker scripts, as found in some bfin toolchains. git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7715 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/install_copy_toolchain.sh')
-rwxr-xr-xscripts/install_copy_toolchain.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index 31d3a594f..3492831da 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -159,6 +159,9 @@ ptxd_install_toolchain_lib() {
# strip all braces and install all shared libs ( *.so*), ignore "GROUP" and static libs
#
for script_lib in `sed -n -e "/GROUP/s/[()]//gp" "${lib_path}"`; do
+ # deal with multiple "//" in paths, remove them
+ script_lib="`echo ${script_lib} | sed -e \"s://*:/:g\"`"
+
# deal with relative and absolute libs
case "${script_lib}" in
/*.so*)