* configure.in: Work around ld --help change and avoid -z relro
test completely if the architecture doesn't care about security.
This commit is contained in:
parent
ba023e4741
commit
d95b0c5e46
|
@ -1,3 +1,8 @@
|
||||||
|
2006-11-02 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* configure.in: Work around ld --help change and avoid -z relro
|
||||||
|
test completely if the architecture doesn't care about security.
|
||||||
|
|
||||||
2006-11-01 Ulrich Drepper <drepper@redhat.com>
|
2006-11-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* po/sv.po: Update from translation team.
|
* po/sv.po: Update from translation team.
|
||||||
|
|
24
configure.in
24
configure.in
|
@ -1436,26 +1436,26 @@ EOF
|
||||||
fi
|
fi
|
||||||
rm -f conftest*])
|
rm -f conftest*])
|
||||||
|
|
||||||
AC_CACHE_CHECK(for -z relro option,
|
case "$base_machine" in
|
||||||
libc_cv_z_relro, [dnl
|
changequote(,)dnl
|
||||||
|
i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
|
||||||
|
changequote([,])dnl
|
||||||
|
AC_CACHE_CHECK(for -z relro option,
|
||||||
|
libc_cv_z_relro, [dnl
|
||||||
libc_cv_z_relro=no
|
libc_cv_z_relro=no
|
||||||
if AC_TRY_COMMAND([${CC-cc} -v --help 2>&1|grep "z relro" 1>&AS_MESSAGE_LOG_FD])
|
if AC_TRY_COMMAND([${CC-cc} -v --help 2>&1|grep "z relro" 1>&AS_MESSAGE_LOG_FD])
|
||||||
then
|
then
|
||||||
if AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&AS_MESSAGE_LOG_FD])
|
if AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&AS_MESSAGE_LOG_FD])
|
||||||
then
|
then
|
||||||
libc_cv_z_relro=yes
|
libc_cv_z_relro=yes
|
||||||
else
|
|
||||||
changequote(,)dnl
|
|
||||||
case "$base_machine" in
|
|
||||||
i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*) ;;
|
|
||||||
*) libc_cv_z_relro="not required" ;;
|
|
||||||
esac
|
|
||||||
changequote([,])dnl
|
|
||||||
fi
|
fi
|
||||||
fi])
|
fi])
|
||||||
if test "$libc_cv_z_relro" = no; then
|
if test "$libc_cv_z_relro" = no; then
|
||||||
AC_MSG_ERROR(linker with -z relro support required)
|
AC_MSG_ERROR(linker with -z relro support required)
|
||||||
fi
|
fi
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
AC_CACHE_CHECK(for -Bgroup option,
|
AC_CACHE_CHECK(for -Bgroup option,
|
||||||
libc_cv_Bgroup, [dnl
|
libc_cv_Bgroup, [dnl
|
||||||
|
|
Loading…
Reference in New Issue