summaryrefslogtreecommitdiffstats
path: root/scripts/install_copy_toolchain.sh
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2006-11-02 14:24:32 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2006-11-02 14:24:32 +0000
commite0a7ee556609b0e76d5fe4b06e53ba21d13798b3 (patch)
treeb20664454d1e6094c539b9d331eff8c57ac7797f /scripts/install_copy_toolchain.sh
parent6be9d502273550e812f99c2f3809c7a19f6ead70 (diff)
downloadptxdist-e0a7ee556609b0e76d5fe4b06e53ba21d13798b3.tar.gz
ptxdist-e0a7ee556609b0e76d5fe4b06e53ba21d13798b3.tar.xz
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6267 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/install_copy_toolchain.sh')
-rwxr-xr-xscripts/install_copy_toolchain.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh
index 9b24bee59..205ad773f 100755
--- a/scripts/install_copy_toolchain.sh
+++ b/scripts/install_copy_toolchain.sh
@@ -15,6 +15,10 @@ get_lib_path() {
# ask the compiler for the lib
lib_path="`${CC} -print-file-name=${lib}`"
+ if test "${lib_path}" = "${lib}"; then
+ echo "install_copy_toolchain_lib: ${lib} not found"
+ return -1
+ fi
# let the shell canonicalized the path
lib_dir="`cd ${lib_path%/${lib}} && echo $PWD`"
@@ -164,7 +168,7 @@ ptxd_install_lib() {
"${ROOTDIR_DEBUG}" \
"${IMAGEDIR}/${packet}/ipkg"; do
- if test \! -e "${ROOTDIR}${prefix}/${lib_v_major}"; then
+ if test \! -e "${dir}${prefix}/${lib_v_major}"; then
ln -sf "${lib}" "${dir}${prefix}/${lib_v_major}"
fi
done