From ca3c589e6e357dafac86298b731717b3bb24d5ba Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 30 Mar 1998 10:21:41 +0000 Subject: [PATCH] (libtype.So, CFLAGS-.So, CPPFLAGS-.So, object-suffixes-for-libc): New variables. (all-object-suffixes): Add .So. (link-libc): Link against libc_nonshared.a instead of libc.a. Remove explicit reference to the dynamic linker. --- Makeconfig | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Makeconfig b/Makeconfig index a3e72de345..0e1c450726 100644 --- a/Makeconfig +++ b/Makeconfig @@ -339,8 +339,7 @@ ifeq (yes,$(build-shared)) # run the linked programs. link-libc = -Wl,-rpath-link=$(rpath-link) \ $(common-objpfx)libc.so$(libc.so-version) \ - $(elfobjdir)/$(rtld-installed-name) \ - $(common-objpfx)libc.a $(gnulib) + $(common-objpfx)$(patsubst %,$(libtype.So),c) $(gnulib) # Choose the default search path for the dynamic linker based on # where we will install libraries. ifneq ($(libdir),$(slibdir)) @@ -487,7 +486,7 @@ endif # to pass different flags for each flavor. libtypes = $(foreach o,$(object-suffixes),$(libtype$o)) object-suffixes := .o -all-object-suffixes := .o .so .po .go +all-object-suffixes := .o .so .po .go .So libtype.o := lib%.a ifeq (yes,$(build-shared)) # Under --enable-shared, we will build a shared library of PIC objects. @@ -516,6 +515,19 @@ CFLAGS-.so += $(CFLAGS-.o) libtype.go = lib%_g.a endif +object-suffixes-for-libc := $(object-suffixes) + +ifeq ($(build-shared),yes) +# Special library that contains the static-only routines for libc. +object-suffixes-for-libc += .So +# Must build the routines as PIC, though, because they can end up in (users') +# shared objects. We don't want to use CFLAGS-so because users may, for +# example, make that processor-specific. +CFLAGS-.So = $(CFLAGS-.o) -fPIC -fno-common +CPPFLAGS-.So = $(CPPFLAGS-.o) +libtype.So = lib%_nonshared.a +endif + +gnu-stabs = $(shell echo>&2 '*** BARF ON ME') -- 2.11.4.GIT