about summary refs log tree commit diff
path: root/posix/Makefile
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1999-03-20 17:16:44 +0000
committerAndreas Schwab <schwab@suse.de>1999-03-20 17:16:44 +0000
commitdf455ccb63266939408fba27120a7bbdee3457e9 (patch)
tree90c9d9443ad66898f2e6a7cb34cd36984ff2530f /posix/Makefile
parentbfe1b528468c65f1ad575bfb2a0aea48dd9ded0b (diff)
downloadglibc-df455ccb63266939408fba27120a7bbdee3457e9.tar.gz
glibc-df455ccb63266939408fba27120a7bbdee3457e9.tar.xz
glibc-df455ccb63266939408fba27120a7bbdee3457e9.zip
1999-03-19 Andreas Jaeger <aj@arthur.rhein-neckar.de> cvs/libc-as-990322
* 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  <aj@arthur.rhein-neckar.de>
Diffstat (limited to 'posix/Makefile')
-rw-r--r--posix/Makefile8
1 files changed, 7 insertions, 1 deletions
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