From ede64c814ba1c22f971563e3b3d04c7fffc5df0e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 20 Dec 2025 14:17:14 +1030 Subject: [PATCH] ld targ_extra_emuls and targ_extra_libpath 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. --- ld/configure | 2 +- ld/configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 "*) ;; *)