1999-03-19 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+ * 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>
+
* debug/Makefile (install-bin): Install and build catchsegv only
if build-shared == yes. Reported by jussi@jlaako.pp.fi [PR
libc/965].
-# Copyright (C) 1991, 1992, 1996, 1997, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1991, 1992, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
include ../Rules
+ifeq (yes,$(build-static-nss))
+otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \
+ $(resolvobjdir)/libresolv.a
+endif
+
+
ifeq ($(have-thread-library),yes)
CFLAGS-getgrgid_r.c = -DUSE_NSCD=1
include ../Rules
+ifeq (yes,$(build-shared))
tests: $(objpfx)iconv-test.out
+endif
$(objpfx)iconv-test.out: run-iconv-test.sh $(objpfx)gconv-modules \
$(addprefix $(objpfx),$(modules.so)) \
-# Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
$(objpfx)libpthread.so: $(common-objpfx)libc.so
# Make sure we link with the thread library.
-$(objpfx)ex1: $(objpfx)libpthread.so
-$(objpfx)ex2: $(objpfx)libpthread.so
-$(objpfx)ex3: $(objpfx)libpthread.so
-$(objpfx)ex4: $(objpfx)libpthread.so
-$(objpfx)ex5: $(objpfx)libpthread.so
-$(objpfx)ex6: $(objpfx)libpthread.so
+ifeq ($(build-shared),yes)
+libpthread = $(objpfx)libpthread.so
+else
+libpthread = $(objpfx)libpthread.a
+endif
+
+$(objpfx)ex1: $(libpthread)
+$(objpfx)ex2: $(libpthread)
+$(objpfx)ex3: $(libpthread)
+$(objpfx)ex4: $(libpthread)
+$(objpfx)ex5: $(libpthread)
+$(objpfx)ex6: $(libpthread)
ifeq (no,$(cross-compiling))
+ifeq (yes,$(build-shared))
.PHONY: do-collate-test do-tst-fmon do-tst-locale do-tst-rpmatch
tests: do-collate-test do-tst-fmon do-tst-locale do-tst-rpmatch
do-collate-test: sort-test.sh $(objpfx)collate-test $(objpfx)xfrm-test \
do-tst-rpmatch: tst-rpmatch.sh $(objpfx)tst-rpmatch do-tst-fmon
$(SHELL) -e $< $(common-objpfx)
endif
+endif
# Sometimes the whole collection of locale files should be installed.
LOCALEDEF=$(common-objpfx)elf/ld.so --library-path $(rpath-link) $(common-objpfx)locale/localedef
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))
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
$(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
-# Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
# a statically-linked program that hasn't already loaded it.
$(objpfx)librt.so: $(common-objpfx)libc.so $(shared-thread-library)
+ifeq (yes,$(build-shared))
$(objpfx)tst-aio: $(objpfx)librt.so $(shared-thread-library)
+else
+$(objpfx)tst-aio: $(objpfx)librt.a $(static-thread-library)
+endif
\ No newline at end of file