aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-20 17:43:44 +0000
committerRichard Henderson <rth@redhat.com>1999-06-20 17:43:44 +0000
commitba2be5816c514a743f8c6abd6fe346b915a8fb8f (patch)
tree4b3d34d9fdf2d9dfe2b593306dfcb7f8001d063b /ld
parent0bde07d41af5c67daa9291f64b6cf87909df245c (diff)
downloadgdb-ba2be5816c514a743f8c6abd6fe346b915a8fb8f.zip
gdb-ba2be5816c514a743f8c6abd6fe346b915a8fb8f.tar.gz
gdb-ba2be5816c514a743f8c6abd6fe346b915a8fb8f.tar.bz2
H.J. Lu <hjl@gnu.org>
* configure.in (all_libpath): Accumulate across all enabled targets.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rwxr-xr-xld/configure10
-rw-r--r--ld/configure.in10
3 files changed, 18 insertions, 6 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 734397a..16e607d 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/configure b/ld/configure
index 6f159df..3077236 100755
--- a/ld/configure
+++ b/ld/configure
@@ -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
diff --git a/ld/configure.in b/ld/configure.in
index 9e8c964..ef87b9e 100644
--- a/ld/configure.in
+++ b/ld/configure.in
@@ -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