From f781ef4015504e8a1da649c266584976238aa079 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 11 Jun 2011 04:16:49 -0700 Subject: Add --with-default-link configure option. --- Makerules | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makerules') diff --git a/Makerules b/Makerules index d3cb4cc..23d9f1c 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) \ -- cgit v1.1