diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-03-21 20:24:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-03-21 20:24:04 +0000 |
commit | 7ec30d59378a09adc4589b4b930ed792ff87706e (patch) | |
tree | 0974048d4ce70f1a006e320175a1272d1367f61d | |
parent | Fix typo. (diff) | |
download | glibc-7ec30d59378a09adc4589b4b930ed792ff87706e.tar.gz glibc-7ec30d59378a09adc4589b4b930ed792ff87706e.tar.bz2 glibc-7ec30d59378a09adc4589b4b930ed792ff87706e.zip |
[$(elf)=yes] (+prector, +postctor): New variables for
crtbegin.o/crtend.o, using gcc to find them.
(+link): Use them.
-rw-r--r-- | Makeconfig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makeconfig b/Makeconfig index 850932b03e..228020f2b8 100644 --- a/Makeconfig +++ b/Makeconfig @@ -320,10 +320,10 @@ endif ifndef +link +link = $(CC) -nostdlib -nostartfiles -o $@ \ $(sysdep-LDFLAGS) $(config-LDFLAGS) $(LDFLAGS) \ - $(addprefix $(csu-objpfx),start.o) $(+preinit) \ + $(addprefix $(csu-objpfx),start.o) $(+preinit) $(+prector) \ $(filter-out $(addprefix $(csu-objpfx),start.o) $(+preinit) \ $(link-extra-libs) $(common-objpfx)libc% $(+postinit),$^) \ - $(link-extra-libs) $(link-libc) $(+postinit) + $(link-extra-libs) $(link-libc) $(+postctor) $(+postinit) endif ifndef config-LDFLAGS ifeq (yes,$(build-shared)) @@ -367,6 +367,8 @@ endif ifeq ($(elf),yes) +preinit = $(addprefix $(csu-objpfx),crti.o) +postinit = $(addprefix $(csu-objpfx),crtn.o) ++prector = `$(CC) --print-file-name=crtbegin.o` ++postctor = `$(CC) --print-file-name=crtend.o` endif csu-objpfx = $(common-objpfx)csu/ elf-objpfx = $(common-objpfx)elf/ |