aboutsummaryrefslogtreecommitdiff
path: root/ld/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'ld/configure.in')
-rw-r--r--ld/configure.in10
1 files changed, 7 insertions, 3 deletions
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