summaryrefslogtreecommitdiff
path: root/binutils/patches/013_bash_in_ld_testsuite.patch
blob: f9e555c6f1607c545c67396e5d987e4c326d21b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Matthias Klose <doko@ubuntu.com>
Description: Explicitely use bash for the ld testsuite.
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -119,10 +119,10 @@
 	#makefile rules, with embedded shell variable expansions.
 	#make wants $$shell_var, we want $shell_var ...
 	set cmd "host='$target_triplet' && . $srcdir/../configure.host && sed -e 's,\\\$\\\$,\$,g' <<EOF\n\$$varname\nEOF"
-	set status [catch "exec sh -c [list $cmd]" result]
+	set status [catch "exec bash -c [list $cmd]" result]
 	if $status { error "Error getting native link files: $result" }
 	set cmd "CC='$CC' && eval echo \"$result\""
-	set status [catch "exec sh -c [list $cmd]" result]
+	set status [catch "exec bash -c [list $cmd]" result]
 	if $status { error "Error getting native link files: $result" }
 	set $varname $result
 	send_log "$varname = $result\n"
@@ -132,7 +132,7 @@
 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
 }