aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2011-06-11 04:16:49 -0700
committerRoland McGrath <roland@hack.frob.com>2011-07-02 15:19:52 -0700
commitf781ef4015504e8a1da649c266584976238aa079 (patch)
treece0e43d899039e60690ce5ca64341ad9c7eedf38 /Makerules
parent2d4fa81e11abc464b5b1f6417525285e84ff787c (diff)
downloadglibc-f781ef4015504e8a1da649c266584976238aa079.tar
glibc-f781ef4015504e8a1da649c266584976238aa079.tar.gz
glibc-f781ef4015504e8a1da649c266584976238aa079.tar.bz2
glibc-f781ef4015504e8a1da649c266584976238aa079.zip
Add --with-default-link configure option.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makerules b/Makerules
index d3cb4cc106..23d9f1c166 100644
--- a/Makerules
+++ b/Makerules
@@ -479,6 +479,11 @@ endif
endif
ifeq (yes,$(elf))
+ifeq (yes,$(use-default-link))
+# If the linker is good enough, we can let it use its default linker script.
+shlib-lds =
+shlib-lds-flags =
+else
# binutils only position loadable notes into the first page for binaries,
# not for shared objects
$(common-objpfx)shlib.lds: $(common-objpfx)config.make $(..)Makerules
@@ -516,6 +521,7 @@ common-generated += shlib.lds
shlib-lds = $(common-objpfx)shlib.lds
shlib-lds-flags = -T $(shlib-lds)
+endif
define build-shlib
$(build-shlib-helper) -o $@ $(shlib-lds-flags) \