From df455ccb63266939408fba27120a7bbdee3457e9 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sat, 20 Mar 1999 17:16:44 +0000 Subject: 1999-03-19 Andreas Jaeger * rt/Makefile: Link against static library if no shared lib is available. * localedata/Makefile: The shells scripts implementing the test require the dynamic linker which is not available with --disable-shared. Skip the test if --disable-shared is given. * linuxthreads/Makefile: Link test against static libpthread if no shared lib is available. * iconvdata/Makefile (tests): Run iconv-test only if we're building shared libraries. * elf/Makefile (tests): Likewise for elf tests. * posix/Makefile: The test frameworks globtest and wordexp-test require the dynamic linker which is not available with --disable-shared. Skip the test if --disable-shared is given. * grp/Makefile (otherlibs): For static nss build link against necessary libs. * rt/Makefile: Link against static library if no shared lib is available. * localedata/Makefile: The shells scripts implementing the test require the dynamic linker which is not available with --disable-shared. Skip the test if --disable-shared is given. * linuxthreads/Makefile: Link test against static libpthread if no shared lib is available. * iconvdata/Makefile (tests): Run iconv-test only if we're building shared libraries. * elf/Makefile (tests): Likewise for elf tests. * posix/Makefile: The test frameworks globtest and wordexp-test require the dynamic linker which is not available with --disable-shared. Skip the test if --disable-shared is given. * grp/Makefile (otherlibs): For static nss build link against necessary libs. 1999-03-19 Andreas Jaeger --- posix/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'posix/Makefile') diff --git a/posix/Makefile b/posix/Makefile index 7f1ff7bc67..27905346de 100644 --- a/posix/Makefile +++ b/posix/Makefile @@ -56,9 +56,12 @@ routines := \ include ../Makeconfig aux := init-posix environ -tests := tstgetopt testfnm runtests wordexp-test runptests \ +tests := tstgetopt testfnm runtests runptests \ tst-preadwrite test-vfork +ifeq (yes,$(build-shared)) test-srcs := globtest +tests += wordexp-test +endif others := getconf install-bin := getconf ifeq (yes,$(build-static)) @@ -75,6 +78,8 @@ generated := $(addprefix wordexp-test-result, 1 2 3 4 5 6 7 8 9 10) \ include ../Rules ifeq (no,$(cross-compiling)) +# globtest and wordexp-test currently only works with shared libraries +ifeq (yes,$(build-shared)) .PHONY: do-globtest do-wordexp-test tests: do-globtest do-wordexp-test do-globtest: $(objpfx)globtest @@ -84,6 +89,7 @@ do-wordexp-test: $(objpfx)wordexp-test $(SHELL) -e wordexp-tst.sh $(common-objpfx) $(elf-objpfx) \ $(rtld-installed-name) endif +endif CFLAGS-regex.c = -Wno-unused -Wno-strict-prototypes CFLAGS-getaddrinfo.c = -DRESOLVER -- cgit 1.4.1