diff options
author | Roland McGrath <roland@hack.frob.com> | 2011-06-27 20:39:05 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2011-06-27 20:39:05 -0700 |
commit | 62bede1313c3a1fa477a092006d64436de6821b1 (patch) | |
tree | 5ff88fe2b97e263a987a13190cfbce5aa48f11e9 /configure.in | |
parent | 78a7eee7fab0802addf500c481335ed6e9899bda (diff) | |
download | glibc-62bede1313c3a1fa477a092006d64436de6821b1.tar.gz glibc-62bede1313c3a1fa477a092006d64436de6821b1.tar.xz glibc-62bede1313c3a1fa477a092006d64436de6821b1.zip |
Distinguish configure check for .ctors/.dtors header/trailers.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in index d3f5210316..fc2a193321 100644 --- a/configure.in +++ b/configure.in @@ -1479,7 +1479,17 @@ EOF rm -f conftest*]) if test $libc_cv_initfini_array != yes; then AC_MSG_ERROR([Need linker with .init_array/.fini_array support.]) - elif AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&AS_MESSAGE_LOG_FD]); then + fi + + AC_CACHE_CHECK(whether to use .ctors/.dtors header and trailer, + libc_cv_ctors_header, [dnl + if AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&AS_MESSAGE_LOG_FD]); then + libc_cv_ctors_header=no + else + libc_cv_ctors_header=yes + fi]) + + if test $libc_cv_ctors_header = no; then AC_DEFINE(NO_CTORS_DTORS_SECTIONS) fi |