From a641835acd28fabf507c5a99d7805c694c2ec7e3 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 20 Apr 1996 00:05:25 +0000 Subject: Fri Apr 19 00:49:44 1996 Roland McGrath * stdlib/rpmatch.c (rpmatch: try): Take new arg NOMATCH, return value for nonmatching nonerror (instead of !MATCH). (rpmatch): Use it, so we return -1 when NOEXPR doesn't match either. * resolv/getnetnamadr.c (getnetbyaddr): Use u_int32_t instead of unsigned long for variable NET2. * time/etcetera, time/europe, time/solar89: Updated from ADO's 96e. Tue Apr 9 14:37:31 1996 Ulrich Drepper * catgets/Makefile, catgets/catgets.c, catgets/catgetsinfo.h, catgets/config.h, catgets/gencat.c, catgets/nl_types.h, catgets/open_catalog.c: New files. Implementation of XPG4 compliant catgets() function and needed tools. * Makefile (subdirs): Add catgets. Thu Apr 18 23:36:11 1996 Roland McGrath * math/Makefile (CPPFLAGS): Append -D__NO_MATH_INLINES. Wed Apr 10 20:48:43 1996 Ulrich Drepper * stdio-common/vfprintf.c: Correct some typos. * sysdeps/libm-ieee754/w_gammaf.c, sysdeps/libm-ieee754/w_lgamma.c, sysdeps/libm-ieee754/w_lgammaf.c: Reference signgam instead of __signgam. Thu Apr 18 21:07:27 1996 Roland McGrath * Makerules (no-whole-archive): New variable. (build-shlib): Use it. * elf/Makefile (libdl.so): Use it. * configure.in (libc_cv_ld_no_whole_archive): New check for --no-whole-archive. * config.make.in (have-no-whole-archive): New variable. * stdio-common/printf_fp.c: Increase fudge factor for BIGNUM_SIZE calc from 3 to 4. * Make-dist: Include version.mk. (version, release): Variables removed. * Makeconfig (version.mk): New target. Fri Apr 19 01:42:18 1996 Ulrich Drepper * locale/Makefile (headers): Add langinfo.h. (CPPFLAGS): Remove -Iliblib. --- Makerules | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makerules') diff --git a/Makerules b/Makerules index cb22d03945..a16337806c 100644 --- a/Makerules +++ b/Makerules @@ -569,12 +569,19 @@ ifeq (yes,$(build-shared)) # on other shared objects. lib%.so: lib%_pic.a; $(build-shlib) +ifeq ($(libc_cv_ld_no_whole_archive),yes) +no-whole-archive = -Wl,--no-whole-archive +else +no-whole-archive = +endif + define build-shlib $(LINK.o) -shared -o $@ $(sysdep-LDFLAGS) $(config-LDFLAGS) \ -Wl,-soname=lib$(libprefix)$(@F:lib%.so=%).so$($(@F)-version) \ $(LDFLAGS.so) $(LDFLAGS-$(@F:lib%.so=%).so) \ -Wl,-rpath-link=$(common-objdir) \ - -Wl,--whole-archive $^ $(LDLIBS-$(@F:lib%.so=%).so) + -Wl,--whole-archive $^ $(no-whole-archive) \ + $(LDLIBS-$(@F:lib%.so=%).so) endef # Don't try to use -lc when making libc.so itself. -- cgit 1.4.1