mirror of git://sourceware.org/git/glibc.git
* Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
to crt[in].o. (csu-objpfx): New variable. (+link): Use it to find start.o and $(+preinit), $(+postinit). * Rules (subdir_lib, all): Depend on objs.
This commit is contained in:
parent
0923c7a543
commit
96f873b921
|
|
@ -1,5 +1,12 @@
|
||||||
Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
|
Mon Feb 20 04:04:57 1995 Roland McGrath <roland@duality.gnu.ai.mit.edu>
|
||||||
|
|
||||||
|
* Makeconfig [elf=yes] (+preinit, +postinit): New variables, set
|
||||||
|
to crt[in].o.
|
||||||
|
(csu-objpfx): New variable.
|
||||||
|
(+link): Use it to find start.o and $(+preinit), $(+postinit).
|
||||||
|
|
||||||
|
* Rules (subdir_lib, all): Depend on objs.
|
||||||
|
|
||||||
* config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
|
* config.h.in [HAVE_ELF || HAVE_GNU_LD]: Define HAVE_WEAK_SYMBOLS.
|
||||||
|
|
||||||
* stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
|
* stdlib/strtod.c (PASTE, PASTE1): New helper macros; use these in
|
||||||
|
|
|
||||||
13
Makeconfig
13
Makeconfig
|
|
@ -254,11 +254,22 @@ endif
|
||||||
# Command for linking programs with the C library.
|
# Command for linking programs with the C library.
|
||||||
ifndef +link
|
ifndef +link
|
||||||
+link = $(CC) -nostdlib $(LDFLAGS) -o $@ \
|
+link = $(CC) -nostdlib $(LDFLAGS) -o $@ \
|
||||||
$(common-objpfx)start.o $(^:lib=$(libc.a)) $(gnulib) $(libc.a)
|
$(addprefix $(csu-objpfx),start.o $(+preinit)) \
|
||||||
|
$(^:lib=$(libc.a)) $(gnulib) $(libc.a) \
|
||||||
|
$(addprefix $(csu-objpfx),$(+postinit))
|
||||||
endif
|
endif
|
||||||
ifndef gnulib
|
ifndef gnulib
|
||||||
gnulib := -lgcc
|
gnulib := -lgcc
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(elf),yes)
|
||||||
|
+preinit = crti.o
|
||||||
|
+postinit = crtn.o
|
||||||
|
endif
|
||||||
|
ifdef objpfx
|
||||||
|
csu-objpfx = $(objpfx)
|
||||||
|
else
|
||||||
|
csu-objpfx = $(..)csu
|
||||||
|
endif
|
||||||
|
|
||||||
ifndef LD
|
ifndef LD
|
||||||
LD := ld -X
|
LD := ld -X
|
||||||
|
|
|
||||||
4
Rules
4
Rules
|
|
@ -36,7 +36,7 @@ export subdir := $(subdir)
|
||||||
|
|
||||||
# This is the default target; it makes the library and auxiliary programs.
|
# This is the default target; it makes the library and auxiliary programs.
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: lib others
|
all: objs lib others
|
||||||
|
|
||||||
ifneq "$(findstring env,$(origin headers))" ""
|
ifneq "$(findstring env,$(origin headers))" ""
|
||||||
headers :=
|
headers :=
|
||||||
|
|
@ -55,7 +55,7 @@ endif
|
||||||
include ../Makerules
|
include ../Makerules
|
||||||
|
|
||||||
.PHONY: subdir_lib
|
.PHONY: subdir_lib
|
||||||
subdir_lib: lib-noranlib
|
subdir_lib: objs lib-noranlib
|
||||||
|
|
||||||
# Some subdirs need to install a dummy library.
|
# Some subdirs need to install a dummy library.
|
||||||
# They can use "$(objpfx)libfnord.a: $(dep-dummy-lib); $(make-dummy-lib)".
|
# They can use "$(objpfx)libfnord.a: $(dep-dummy-lib); $(make-dummy-lib)".
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue