* genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
authorMike Frysinger <vapier@gentoo.org>
Fri, 6 Oct 2006 20:10:37 +0000 (20:10 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 6 Oct 2006 20:10:37 +0000 (20:10 +0000)
ld/ChangeLog
ld/genscripts.sh

index 09fd5505f583e6741e0516935734339b196fc7d1..cdae47b65db15af7d7c6e4e420a72cac6eb00367 100644 (file)
@@ -1,3 +1,7 @@
+2006-10-06  Mike Frysinger  <vapier@gentoo.org>
+
+       * genscripts.sh: Respect LIBPATH_SUFFIX when not using sysroot.
+
 2006-10-04  Bob Wilson  <bob.wilson@acm.org>
 
        * emulparams/xtensa-config.sh: Delete file.
index e9d4f153a7a71e389122921d16a8a33e857afbe5..81b78a2cf35eec044b396ea74e9a68f4c2812267 100755 (executable)
@@ -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'`