mirror of git://sourceware.org/git/glibc.git
Link as-needed against ld.so.
This commit is contained in:
parent
c98d4212d0
commit
7e2b0c8562
|
@ -1,5 +1,8 @@
|
||||||
2010-04-19 Roland McGrath <roland@redhat.com>
|
2010-04-19 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* Makeconfig (as-needed, no-as-needed): New variables.
|
||||||
|
(link-libc): Add ld.so inside --as-needed.
|
||||||
|
|
||||||
* stdio-common/tst-fmemopen.c (TEST_FILE): Macro removed.
|
* stdio-common/tst-fmemopen.c (TEST_FILE): Macro removed.
|
||||||
(main): Take arguments. Construct test file name from ARGV[0].
|
(main): Take arguments. Construct test file name from ARGV[0].
|
||||||
|
|
||||||
|
|
11
Makeconfig
11
Makeconfig
|
@ -387,6 +387,14 @@ ifeq ($(elf),yes)
|
||||||
have-initfini = yes
|
have-initfini = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(have-as-needed),yes)
|
||||||
|
as-needed := -Wl,--as-needed
|
||||||
|
no-as-needed := -Wl,--no-as-needed
|
||||||
|
else
|
||||||
|
as-needed :=
|
||||||
|
no-as-needed :=
|
||||||
|
endif
|
||||||
|
|
||||||
# Installed name of the startup code.
|
# Installed name of the startup code.
|
||||||
ifneq ($(have-initfini),yes)
|
ifneq ($(have-initfini),yes)
|
||||||
# When not having init/fini, there is just one startfile, called crt0.o.
|
# When not having init/fini, there is just one startfile, called crt0.o.
|
||||||
|
@ -484,7 +492,8 @@ ifeq ($(elf),yes)
|
||||||
# run the linked programs.
|
# run the linked programs.
|
||||||
link-libc = -Wl,-rpath-link=$(rpath-link) \
|
link-libc = -Wl,-rpath-link=$(rpath-link) \
|
||||||
$(common-objpfx)libc.so$(libc.so-version) \
|
$(common-objpfx)libc.so$(libc.so-version) \
|
||||||
$(common-objpfx)$(patsubst %,$(libtype.oS),c) $(gnulib)
|
$(common-objpfx)$(patsubst %,$(libtype.oS),c) \
|
||||||
|
$(as-needed) $(common-objpfx)elf/ld.so $(no-as-needed) $(gnulib)
|
||||||
# This is how to find at build-time things that will be installed there.
|
# This is how to find at build-time things that will be installed there.
|
||||||
rpath-dirs = math elf dlfcn nss nis rt resolv crypt
|
rpath-dirs = math elf dlfcn nss nis rt resolv crypt
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue