[binutils-gdb] ld targ_extra_emuls and targ_extra_libpath

Alan Modra amodra@sourceware.org
Sat Dec 20 04:53:57 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ede64c814ba1c22f971563e3b3d04c7fffc5df0e

commit ede64c814ba1c22f971563e3b3d04c7fffc5df0e
Author: Alan Modra <amodra@gmail.com>
Date:   Sat Dec 20 14:17:14 2025 +1030

    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.

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


More information about the Binutils-cvs mailing list