aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-12 02:58:43 +0000
committerRoland McGrath <roland@gnu.org>2002-09-12 02:58:43 +0000
commit9bfce4bf2865c2981a8d790ae7f6c50c4e87dd97 (patch)
tree3d870712dd378958807f0dc88d82884413168289 /Makefile
parent049e7c97d6f4d191717b06ede1da40965f032148 (diff)
downloadglibc-9bfce4bf2865c2981a8d790ae7f6c50c4e87dd97.zip
glibc-9bfce4bf2865c2981a8d790ae7f6c50c4e87dd97.tar.gz
glibc-9bfce4bf2865c2981a8d790ae7f6c50c4e87dd97.tar.bz2
* nss/getnssent_r.c (__nss_getent_r): Use EAGAIN instead of errno
when using h_errno and it's not set to NETDB_INTERNAL. * nss/getXXbyYY_r.c [NEED_H_ERRNO]: Likewise. * Makefile ($(common-objpfx)testrun.sh): New target. (others): Depend on it. (postclean-generated): Append it.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1c40af0..41f571e 100644
--- a/Makefile
+++ b/Makefile
@@ -130,6 +130,21 @@ ifeq (yes,$(build-shared))
# Build the shared object from the PIC object library.
lib: $(common-objpfx)libc.so
endif
+
+
+# This is a handy script for running any dynamically linked program against
+# the current libc build for testing.
+$(common-objpfx)testrun.sh: $(common-objpfx)config.make \
+ $(..)Makeconfig $(..)Makefile
+ (echo '#!/bin/sh'; \
+ echo "GCONV_PATH='$(common-objpfx)iconvdata' \\"; \
+ echo 'exec $(run-program-prefix) $${1+"$$@"}'; \
+ ) > $@T
+ chmod a+x $@T
+ mv -f $@T $@
+postclean-generated += testrun.sh
+
+others: $(common-objpfx)testrun.sh
# Makerules creates a file `stubs' in each subdirectory, which
# contains `#define __stub_FUNCTION' for each function defined in that