summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_xpkg_pkg.sh
diff options
context:
space:
mode:
authorBernhard Walle <bernhard@bwalle.de>2013-03-21 19:34:09 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2013-03-22 10:40:19 +0100
commit822ff64172ff30bc076a0b06da4663ca82dfbfd0 (patch)
tree2d5f5f66c6657b42c97ed200e7407aa604ffd96d /scripts/lib/ptxd_make_xpkg_pkg.sh
parent623ba3975e03a42d049da13eb7388bdbf199e2f6 (diff)
downloadptxdist-822ff64172ff30bc076a0b06da4663ca82dfbfd0.tar.gz
ptxdist-822ff64172ff30bc076a0b06da4663ca82dfbfd0.tar.xz
ptxd_install_shared: Fix missing links when ${src} is a symlink itself
When "${src}" is a symlink to some other directory, then not all symbolic links to the library are installed. In my case I'm using a ct-ng-based toolchain where ${TOOLCHAIN_BASE}/arm-unknown-linux-gnueabi/lib/ is a symbolic link to sysroot/lib/. As a result, install_copy_toolchain_lib with libstdc++.so doesn't install the libstdc++.so.6 symbolic link and so C++ programs don't start. Signed-off-by: Bernhard Walle <bernhard@bwalle.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_make_xpkg_pkg.sh')
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 476ad584e..17d3ff4e2 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -694,7 +694,7 @@ ptxd_install_shared() {
ptxd_install_file "${src}" "${dst}/${filename}" "${usr}" "${grp}" "${mod}" &&
- find "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do
+ find -H "$(dirname "${src}")" -maxdepth 1 -type l | while read file; do
if [ "$(basename "$(readlink -f "${file}")")" = "${filename}" ]; then
local link="${dst}/$(basename "${file}")"
ptxd_install_ln "${filename}" "${link}" "${usr}" "${grp}" || return