about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2014-09-29 23:24:37 +0000
committerJoseph Myers <joseph@codesourcery.com>2014-09-29 23:24:37 +0000
commitb7e02da4e9c426c61d535aa96b0cf0b296e2e25c (patch)
tree15919c56ee732673ff28ddd6c4cd094ec7402780
parent62058ce612ed3459501b4c4332e268edfe977f59 (diff)
downloadglibc-b7e02da4e9c426c61d535aa96b0cf0b296e2e25c.tar.gz
glibc-b7e02da4e9c426c61d535aa96b0cf0b296e2e25c.tar.xz
glibc-b7e02da4e9c426c61d535aa96b0cf0b296e2e25c.zip
Run tst-ld-sse-use.sh with bash.
tst-ld-sse-use.sh is a bash script, not a POSIX shell script, and so
needs to be run with $(BASH) not $(SHELL) to avoid errors of the form:

../sysdeps/x86/tst-ld-sse-use.sh: 41: ../sysdeps/x86/tst-ld-sse-use.sh: declare: not found

(when /bin/sh is dash).  This patch makes that change.

Tested for x86_64.

	* sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
	with $(BASH) not $(SHELL).
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/x86/Makefile2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c607d9206..9acecce82c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-09-29  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
+	with $(BASH) not $(SHELL).
+
 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
 	    Matthew LeGendre  <legendre1@llnl.gov>
 
diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile
index 087bbdeca0..19f5eca741 100644
--- a/sysdeps/x86/Makefile
+++ b/sysdeps/x86/Makefile
@@ -5,6 +5,6 @@ CFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
 tests-special += $(objpfx)tst-ld-sse-use.out
 $(objpfx)tst-ld-sse-use.out: ../sysdeps/x86/tst-ld-sse-use.sh $(objpfx)ld.so
 	@echo "Checking ld.so for SSE register use.  This will take a few seconds..."
-	$(SHELL) $< $(objpfx) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@; \
+	$(BASH) $< $(objpfx) '$(NM)' '$(OBJDUMP)' '$(READELF)' > $@; \
 	$(evaluate-test)
 endif