Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Tue, 30 Jan 2024 10:04:12 +0000 (11:04 +0100)
committerMatthias Klose <doko@debian.org>
Tue, 30 Jan 2024 10:04:12 +0000 (11:04 +0100)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index 705543054c284634be37b6263f1c1f45a9add2a6..2dec7b8058c3c49fbf45b8ffd32ba834db1474c5 100644 (file)
@@ -178,7 +178,7 @@ load_lib ld-lib.exp
 proc get_target_emul {} {
     global target_triplet
     global srcdir
-    set status [catch "exec sh -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
+    set status [catch "exec bash -c \"targ='$target_triplet' && . $srcdir/../configure.tgt && echo \\\$targ_emul\"" result]
     if $status { error "Error getting emulation name: $result" }
     return $result
 }