From: Mike Frysinger Date: Fri, 6 Oct 2006 20:10:37 +0000 (+0000) Subject: * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33423b7ffed87b140d924bc06ff35d353bfc4871;p=binutils-gdb.git * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 09fd5505f58..cdae47b65db 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2006-10-06 Mike Frysinger + + * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot. + 2006-10-04 Bob Wilson * emulparams/xtensa-config.sh: Delete file. 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'`