]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix a braino in new relro configure test.
authorRoland McGrath <roland@hack.frob.com>
Tue, 12 Jul 2011 01:38:13 +0000 (18:38 -0700)
committerRoland McGrath <roland@hack.frob.com>
Tue, 12 Jul 2011 01:38:13 +0000 (18:38 -0700)
ChangeLog
configure
configure.in

index 31902a0a3f1f0354bd33d479d41510b8a7a970cb..9738f7bd51d06dd785cd6075c6601791069caf65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-07-11  Roland McGrath  <roland@hack.frob.com>
+
+       * configure.in (-z relro check): Fix test code to make the variable
+       truly const.
+       * configure: Regenerated.
+
 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
 
        * nscd/nscd.h (struct traced_file): Define.
index ffeb89057f577fb37fa376988c362285817cc699..d44659bb2c11cb180b50b2448b5a084b0daf7e87 100755 (executable)
--- a/configure
+++ b/configure
@@ -6404,7 +6404,7 @@ else
 
 int _start (void) { return 42; }
 extern void _exit (int);
-const void *relro[] = { &_start, &_exit, 0 };
+const void *const relro[] = { &_start, &_exit, 0 };
 
 _ACEOF
     cat > conftest.awk <<\EOF
index e18b34341601e9b0ff5eeac7087bd9f6d9077cc1..d40bc64ca20a41557b0fa72dfa114063f357e177 100644 (file)
@@ -1607,7 +1607,7 @@ EOF
     AC_LANG_CONFTEST([AC_LANG_SOURCE([[
 int _start (void) { return 42; }
 extern void _exit (int);
-const void *relro[] = { &_start, &_exit, 0 };
+const void *const relro[] = { &_start, &_exit, 0 };
 ]])])
     cat > conftest.awk <<\EOF
 BEGIN {