From patchwork Mon Sep 29 23:26:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 394667 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CE2091400BE for ; Tue, 30 Sep 2014 09:26:22 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=xhxZjBpnHWreLYvNwubBk+xGHlHZO NcE9wpfMffMjqMENqHAuXe5yoiUwwxNqiGSQaJ274kO5H3wfWUUXRNN7mhH2WHqj ltz4J9/DhrO4HdisgcHlJNAKOYkETISusGon9WvaUYoT4ggE4fpfYtlIGzx82PA9 8hSPsyzPY6hUnk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=uQiBq7oWbuwcV7TZN50tKlb0JtE=; b=nt2 wVcCLmQep+MWfNL6NSZce+7Yj1/sQR1fbNVHmyf/HLj8PVyx8mbI/rmFpW0CKYVV dVmTGhGAjGzgTG12+fK21CMWsyA52A5hH6ZbchJ+cjhDSXJrlSZXX7WntJ06wNZD gHGwtkeKtUvW6miLWlEkQK4WEH389u2EnAGuM+38= Received: (qmail 28362 invoked by alias); 29 Sep 2014 23:26:17 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28353 invoked by uid 89); 29 Sep 2014 23:26:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL, BAYES_40 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Mon, 29 Sep 2014 23:26:10 +0000 From: "Joseph S. Myers" To: Subject: Run tst-ld-sse-use.sh with bash Message-ID: MIME-Version: 1.0 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 and committed as obvious. 2014-09-29 Joseph Myers * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script with $(BASH) not $(SHELL). diff --git a/sysdeps/x86/Makefile b/sysdeps/x86/Makefile index 087bbde..19f5eca 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