* genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
authorAlan Modra <amodra@gmail.com>
Wed, 28 Jan 2004 13:31:30 +0000 (13:31 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 28 Jan 2004 13:31:30 +0000 (13:31 +0000)
ld/ChangeLog
ld/genscripts.sh

index 25d53d642485b5fb0781a84713580f5438b272a3..78682f6cf0e84aa927b016f7b2db9405441e7751 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
+
 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
 
        * emulparams/elf64_ia64.sh: Put .rela.opd into
index 4c7226ad6b0ce9acd19956a62e34e39cbedef746..4069d68b27d003db847c859e591e43392ea1b0fb 100755 (executable)
@@ -128,10 +128,20 @@ fi
 
 if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
   LIB_PATH2=
-  if [ x"$use_sysroot" != xyes ] ; then
-    LIB_PATH2=${libdir}
+
+  libs=${NATIVE_LIB_DIRS}
+  if [ "x${use_sysroot}" != "xyes" ] ; then
+    case " ${libs} " in
+      *" ${libdir} "*) ;;
+      *) libs="${libdir} ${libs}"
+    esac
+    case " ${libs} " in
+      *" ${tool_lib} "*) ;;
+      *) libs="${tool_lib} ${libs}"
+    esac
   fi
-  for lib in ${NATIVE_LIB_DIRS}; do
+
+  for lib in ${libs}; do
     # The "=" is harmless if we aren't using a sysroot, but also needless.
     if [ "x${use_sysroot}" = "xyes" ] ; then
       lib="=${lib}"
@@ -161,13 +171,13 @@ if [ "x${LIB_PATH}" = "x" ] && [ "x${USE_LIBPATH}" = xyes ] ; then
       esac
     fi
   done
+
   case :${LIB_PATH}:${LIB_PATH2}: in
     *:: | ::*) LIB_PATH=${LIB_PATH}${LIB_PATH2} ;;
     *) LIB_PATH=${LIB_PATH}:${LIB_PATH2} ;;
   esac
 fi
 
-
 # Always search $(tooldir)/lib, aka /usr/local/TARGET/lib, except for
 # sysrooted configurations and when LIBPATH=":".
 if [ "x${use_sysroot}" != "xyes" ] ; then
This page took 0.024832 seconds and 4 git commands to generate.