Explicitly use bash for the ld testsuite.
authorMatthias Klose <doko@ubuntu.com>
Wed, 9 Feb 2022 14:53:21 +0000 (14:53 +0000)
committerMatthias Klose <doko@debian.org>
Wed, 9 Feb 2022 14:53:21 +0000 (14:53 +0000)
Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

ld/testsuite/config/default.exp

index 103b426bbd8cd5b7f5509294256fa91804e80eda..7b24d5cda97bfc9c6556ac8413b4ca4a0e444ebc 100644 (file)
@@ -171,7 +171,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
 }