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 31902a0..9738f7b 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 ffeb890..d44659b 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 e18b343..d40bc64 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 {