ld targ_extra_emuls and targ_extra_libpath
Alan Modra
amodra@gmail.com
Sat Dec 20 04:43:12 GMT 2025
targ_extra_libpath are for those targets other than the default target
that might have libraries available in the default library search
paths. targ_extra_emuls are for those targets that likely don't.
Sort them so those on the libpath come first. This currently does not
have any effect except for order of compilation of e*.c and the order
printed in ld help messages, but I thought it worth doing anyway.
* configure.ac (all_emuls): Sort targ_extra_libpath before
targ_extra_emuls.
* configure: Regenerate.
diff --git a/ld/configure b/ld/configure
index 63f388d2672..f557d53b1c3 100755
--- a/ld/configure
+++ b/ld/configure
@@ -19242,7 +19242,7 @@ do
targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
fi
- for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
+ for i in $targ_emul $targ_extra_libpath $targ_extra_emuls; do
case " $all_emuls " in
*" e${i}.o "*) ;;
*)
diff --git a/ld/configure.ac b/ld/configure.ac
index 2c4cc47de01..67e36011253 100644
--- a/ld/configure.ac
+++ b/ld/configure.ac
@@ -537,7 +537,7 @@ do
targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
fi
- for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
+ for i in $targ_emul $targ_extra_libpath $targ_extra_emuls; do
case " $all_emuls " in
*" e${i}.o "*) ;;
*)
--
Alan Modra
More information about the Binutils
mailing list