H.J. Lu <hjl@gnu.org>
authorRichard Henderson <rth@redhat.com>
Sun, 20 Jun 1999 17:43:44 +0000 (17:43 +0000)
committerRichard Henderson <rth@redhat.com>
Sun, 20 Jun 1999 17:43:44 +0000 (17:43 +0000)
        * configure.in (all_libpath): Accumulate across all enabled targets.

ld/ChangeLog
ld/configure
ld/configure.in

index 734397a88793e0e444e766d5f04c6987afb2cdd6..16e607df3e38d4eca74683ed7ee9470faed9a7d4 100644 (file)
@@ -1,3 +1,7 @@
+1999-06-20  H.J. Lu  <hjl@gnu.org>
+
+       * configure.in (all_libpath): Accumulate across all enabled targets.
+
 Sun Jun 20 14:10:33 1999  Richard Henderson  <rth@cygnus.com>
 
        * emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
index 6f159df75c17ada522da4ff4e3484db59195f459..3077236efe063b29be69bafbe4d8f2b2a117bfff 100755 (executable)
@@ -4723,6 +4723,7 @@ all_targets=
 EMUL=
 all_emuls=
 all_emul_extras=
+all_libpath=
 
 rm -f tdirs
 
@@ -4757,12 +4758,15 @@ do
        esac
     done
 
-    all_libpath=$targ_emul
-    for i in $targ_extra_libpath; do
+    for i in $targ_emul $targ_extra_libpath; do
        case " $all_libpath " in
        *" ${i} "*) ;;
        *)
-         all_libpath="$all_libpath ${i}"
+         if test -z "$all_libpath"; then
+           all_libpath=${i}
+         else
+           all_libpath="$all_libpath ${i}"
+         fi
          ;;
        esac
     done
index 9e8c964a0a9a92a338e11fefa5bd8dac9590e981..ef87b9ea21b3d887eba29d00282bf85bdd44db38 100644 (file)
@@ -74,6 +74,7 @@ all_targets=
 EMUL=
 all_emuls=
 all_emul_extras=
+all_libpath=
 
 dnl We need to get an arbitrary number of tdir definitions into
 dnl Makefile.  We can't do it using AC_SUBST, because autoconf does
@@ -112,12 +113,15 @@ do
        esac
     done
 
-    all_libpath=$targ_emul
-    for i in $targ_extra_libpath; do
+    for i in $targ_emul $targ_extra_libpath; do
        case " $all_libpath " in
        *" ${i} "*) ;;
        *)
-         all_libpath="$all_libpath ${i}"
+         if test -z "$all_libpath"; then
+           all_libpath=${i}
+         else
+           all_libpath="$all_libpath ${i}"
+         fi
          ;;
        esac
     done