]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Use $(NM) not nm in tst-cancel-wrappers.
authorJim Blandy <jimb@codesourcery.com>
Sun, 21 Oct 2012 22:38:34 +0000 (22:38 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Sun, 21 Oct 2012 22:38:34 +0000 (22:38 +0000)
ChangeLog
config.make.in
nptl/ChangeLog
nptl/Makefile
nptl/tst-cancel-wrappers.sh

index 3a0c652e90936e0069f256e5384874a2869e206b..6fbc12d6d1466708e6cf87aa71583625bbab7746 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-21  Jim Blandy  <jimb@codesourcery.com>
+           Joseph Myers  <joseph@codesourcery.com>
+
+       * config.make.in (NM): New variable.
+
 2012-10-21  Andreas Jaeger  <aj@suse.de>
 
        * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
index b6d1c945dc3a110538f97f7154283b7ffcf9dc6d..c22acf4a103b6f50462808e98159e75726ff29b0 100644 (file)
@@ -111,6 +111,7 @@ CPPFLAGS-config = @CPPFLAGS@
 CPPUNDEFS = @CPPUNDEFS@
 ASFLAGS-config = @ASFLAGS_config@
 AR = @AR@
+NM = @NM@
 MAKEINFO = @MAKEINFO@
 AS = $(CC) -c
 MIG = @MIG@
index 317e02a705c2645a825554f2b6d45a8b8061f137..6154e61c6770dcf6d522832639ae22d1dfc6ddcf 100644 (file)
@@ -1,3 +1,11 @@
+2012-10-21  Jim Blandy  <jimb@codesourcery.com>
+           Joseph Myers  <joseph@codesourcery.com>
+
+       * Makefile ($(objpfx)tst-cancel-wrappers.out): Pass $(NM) to
+       tst-cancel-wrappers.sh.
+       * tst-cancel-wrappers.sh: Use nm program given as first argument,
+       not hardcoded "nm".
+
 2012-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        * tst-cond25.c (do_test_wait): Don't check for return value from
index 184057b5722bb6eaca0b3e5c6be62ff7c7b42539..bc563f896977da4bba5da7cb7ee7bff79e0f1193 100644 (file)
@@ -587,7 +587,8 @@ ifeq (no,$(cross-compiling))
 ifeq (yes,$(build-shared))
 tests: $(objpfx)tst-cancel-wrappers.out
 $(objpfx)tst-cancel-wrappers.out: tst-cancel-wrappers.sh
-       $(SHELL) $< $(common-objpfx)libc_pic.a \
+       $(SHELL) $< '$(NM)' \
+                   $(common-objpfx)libc_pic.a \
                    $(common-objpfx)libc.a \
                    $(objpfx)libpthread_pic.a \
                    $(objpfx)libpthread.a > $@
index dad2a674e12c71705af5ffefc9f617f0bdecb506..b16ab2fe9e6cfa8ce25a39e3d644cf1951241541 100644 (file)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Test whether all cancelable functions are cancelable.
-# Copyright (C) 2002, 2003, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2012 Free Software Foundation, Inc.
 # This file is part of the GNU C Library.
 # Contributed by Jakub Jelinek <jakub@redhat.com>, 2002.
 
@@ -18,8 +18,9 @@
 # License along with the GNU C Library; if not, see
 # <http://www.gnu.org/licenses/>.
 
+NM="$1"; shift
 while [ $# -gt 0 ]; do
-  ( nm -P $1; echo 'end[end]:' ) | gawk ' BEGIN {
+  ( $NM -P $1; echo 'end[end]:' ) | gawk ' BEGIN {
 C["accept"]=1
 C["close"]=1
 C["connect"]=1