diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-10-06 20:10:37 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-10-06 20:10:37 +0000 |
commit | 33423b7ffed87b140d924bc06ff35d353bfc4871 (patch) | |
tree | 7f3de812b3250a2f41909600f79b020a9d133a01 /ld/genscripts.sh | |
parent | dd920c3388b68346e2cb4d8ffa801ef681af663d (diff) | |
download | binutils-gdb-33423b7ffed87b140d924bc06ff35d353bfc4871.tar.gz |
* genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
Diffstat (limited to 'ld/genscripts.sh')
-rwxr-xr-x | ld/genscripts.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ld/genscripts.sh b/ld/genscripts.sh index e9d4f153a7a..81b78a2cf35 100755 --- a/ld/genscripts.sh +++ b/ld/genscripts.sh @@ -189,6 +189,14 @@ if [ "x${use_sysroot}" != "xyes" ] ; then ::) LIB_PATH=${tool_lib} ;; *) LIB_PATH=${tool_lib}:${LIB_PATH} ;; esac + # For multilib targets, search both $tool_lib dirs + if [ "x${LIBPATH_SUFFIX}" != "x" ] ; then + case :${LIB_PATH}: in + ::: | *:${tool_lib}${LIBPATH_SUFFIX}:*) ;; + ::) LIB_PATH=${tool_lib}${LIBPATH_SUFFIX} ;; + *) LIB_PATH=${tool_lib}${LIBPATH_SUFFIX}:${LIB_PATH} ;; + esac + fi fi LIB_SEARCH_DIRS=`echo ${LIB_PATH} | sed -e 's/:/ /g' -e 's/\([^ ][^ ]*\)/SEARCH_DIR(\\"\1\\");/g'` |