summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2011-05-09 05:41:32 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2011-05-09 05:41:32 (GMT)
commit4e9da47d8fa9bf11267071596f24a1aeda3910a1 (patch)
tree6b2c485ecdca8a5f1d9fa7543535b2a61153e771 /configure.in
parent37c02c9697c5de1080421a72813ab2ea88621ed9 (diff)
parent48e14d3fdac9902429dc5312252073389a538a17 (diff)
downloadcpython-4e9da47d8fa9bf11267071596f24a1aeda3910a1.zip
cpython-4e9da47d8fa9bf11267071596f24a1aeda3910a1.tar.gz
cpython-4e9da47d8fa9bf11267071596f24a1aeda3910a1.tar.bz2
merge 11347.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index ede5ea4..49864f4 100644
--- a/configure.in
+++ b/configure.in
@@ -518,6 +518,18 @@ then
fi
+AC_MSG_CHECKING([for -Wl,--no-as-needed])
+save_LDFLAGS="$LDFLAGS"
+LDFLAGS="$LDFLAGS -Wl,--no-as-needed"
+AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
+ [NO_AS_NEEDED="-Wl,--no-as-needed"
+ AC_MSG_RESULT([yes])],
+ [NO_AS_NEEDED=""
+ AC_MSG_RESULT([no])])
+LDFLAGS="$save_LDFLAGS"
+AC_SUBST(NO_AS_NEEDED)
+
+
# checks for UNIX variants that set C preprocessor variables
AC_USE_SYSTEM_EXTENSIONS