aboutsummaryrefslogtreecommitdiff
path: root/Makeconfig
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2012-04-25 17:02:33 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-04-25 17:02:33 +0000
commita3cc4f48e94f32c9532ee36982ac00eb1e5719b0 (patch)
tree872a98e0d9f8dab827dc11b1ac61c8be4b5a879f /Makeconfig
parentceab42c380901dee40dc8b1fda0453b8ca918cc8 (diff)
downloadglibc-a3cc4f48e94f32c9532ee36982ac00eb1e5719b0.tar
glibc-a3cc4f48e94f32c9532ee36982ac00eb1e5719b0.tar.gz
glibc-a3cc4f48e94f32c9532ee36982ac00eb1e5719b0.tar.bz2
glibc-a3cc4f48e94f32c9532ee36982ac00eb1e5719b0.zip
Remove --as-needed configure test.
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig11
1 files changed, 1 insertions, 10 deletions
diff --git a/Makeconfig b/Makeconfig
index 4364296b3c..148db6e3df 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -388,13 +388,8 @@ ifndef asm-CPPFLAGS
asm-CPPFLAGS =
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
# Must be supported by the linker.
no-whole-archive = -Wl,--no-whole-archive
@@ -534,11 +529,7 @@ ifneq ($(have-cc-with-libunwind),yes)
else
libunwind = -lunwind
endif
-ifneq ($(have-as-needed),yes)
- libgcc_eh := -lgcc_eh $(libunwind)
-else
- libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
-endif
+libgcc_eh := -Wl,--as-needed -lgcc_s $(libunwind) -Wl,--no-as-needed
gnulib := -lgcc $(libgcc_eh)
static-gnulib := -lgcc -lgcc_eh $(libunwind)
libc.so-gnulib := -lgcc