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.
This commit is contained in:
Alan Modra
2025-12-20 14:17:14 +10:30
parent 17883a4c42
commit ede64c814b
2 changed files with 2 additions and 2 deletions

2
ld/configure vendored
View File

@@ -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 "*) ;;
*)

View File

@@ -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 "*) ;;
*)