diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-01-26 14:34:31 +0000 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-01-26 14:34:31 +0000 |
commit | a8f8f9999b91c59c5521fccf9665d0f618c9b876 (patch) | |
tree | 5419b65f089b6b1d248a137da3719b6535645183 /scripts/install_copy_toolchain.sh | |
parent | 245c09b3ad3f0b487b3a91cf3e41bdab211b50c8 (diff) | |
download | ptxdist-a8f8f9999b91c59c5521fccf9665d0f618c9b876.tar.gz ptxdist-a8f8f9999b91c59c5521fccf9665d0f618c9b876.tar.xz |
* scripts/install_copy_toolchain.sh, rules/pre/Rules.make:
This patch updates install_copy_toolchain_dl to current copy toolchain
mechanism. As a side effect install_copy_toolchain_dl works again for Ladis
uClibc based toolchain.
Thanks to Ladis for this patch
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6937 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/install_copy_toolchain.sh')
-rwxr-xr-x | scripts/install_copy_toolchain.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/install_copy_toolchain.sh b/scripts/install_copy_toolchain.sh index ddb2fd236..cd80acca5 100755 --- a/scripts/install_copy_toolchain.sh +++ b/scripts/install_copy_toolchain.sh @@ -32,6 +32,20 @@ ptxd_get_lib_path() { # +# out: dynamic linker name +# +ptxd_get_dl() { + local dl + + dl="`echo 'int main(void){return 0;}' | \ + ${CC} -x c -o /dev/null -v - 2>&1 | \ + sed -n -e 's/.* -dynamic-linker \([^ ]*\).*/\1/p'`" + + echo "`basename ${dl}`" +} + + +# # $1: lib_path: canonicalized path to lib # # The work is done here! @@ -305,6 +319,9 @@ ptxd_install_copy_toolchain() { done if test -n "${lib}"; then + if test "${lib}" == LINKER; then + lib="`ptxd_get_dl`" || return $? + fi lib_path="`ptxd_get_lib_path \"${lib}\"`" || return $? ptxd_install_toolchain_lib "args=\"${args}"\" "lib_path=${lib_path}" || return $? elif test -n "${usr}"; then |