about summary refs log tree commit diff
path: root/configure
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2010-12-24 20:14:37 -0500
committerH.J. Lu <hjl.tools@gmail.com>2013-01-28 09:09:57 -0800
commitd98bc91f30f657da1489e92983d72ef3a44a292f (patch)
tree323ef8439558fe3dcea3a041045008d25ce1f543 /configure
parent3a33e487eeb65e2f1f633581c56bee2c60d0ca43 (diff)
downloadglibc-d98bc91f30f657da1489e92983d72ef3a44a292f.tar.gz
glibc-d98bc91f30f657da1489e92983d72ef3a44a292f.tar.xz
glibc-d98bc91f30f657da1489e92983d72ef3a44a292f.zip
Remove `.ctors' and `.dtors' output sections hjl/ctor/release/2.12
Conflicts:
	ChangeLog
	configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure b/configure
index 8c9413b14c..fcaf74cfb0 100755
--- a/configure
+++ b/configure
@@ -6426,6 +6426,16 @@ $as_echo "$libc_cv_initfini_array" >&6; }
     { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
    { (exit 1); exit 1; }; }
+  elif { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep SORT_BY_INIT_PRIORITY 1>&5'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+    cat >>confdefs.h <<\_ACEOF
+#define NO_CTORS_DTORS_SECTIONS 1
+_ACEOF
+
   fi
 
   { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5