mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 19:03:24 +00:00
configure.ac: Add -nopie to LD_SWITCH_SYSTEM_TEMACS.
* configure.ac (LD_SWITCH_SYSTEM_TEMACS): Add -nopie option if it is supported, in order to avoid segfaults in temacs. (Bug#18784)
This commit is contained in:
parent
0b914bada3
commit
2d45a5be18
2 changed files with 18 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2015-04-03 Ulrich Müller <ulm@gentoo.org>
|
||||||
|
|
||||||
|
* configure.ac (LD_SWITCH_SYSTEM_TEMACS): Add -nopie option if it
|
||||||
|
is supported, in order to avoid segfaults in temacs. (Bug#18784)
|
||||||
|
|
||||||
2015-03-27 Pete Williamson <petewil@chromium.org> (tiny change)
|
2015-03-27 Pete Williamson <petewil@chromium.org> (tiny change)
|
||||||
|
|
||||||
Add NaCl target
|
Add NaCl target
|
||||||
|
|
15
configure.ac
15
configure.ac
|
@ -5027,11 +5027,22 @@ case "$opsys" in
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
openbsd) LD_SWITCH_SYSTEM_TEMACS='-nopie' ;;
|
|
||||||
|
|
||||||
*) LD_SWITCH_SYSTEM_TEMACS= ;;
|
*) LD_SWITCH_SYSTEM_TEMACS= ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
AC_CACHE_CHECK([whether the linker accepts -nopie],
|
||||||
|
[emacs_cv_prog_cc_nopie],
|
||||||
|
[emacs_save_LDFLAGS=$LDFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS -nopie"
|
||||||
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
|
||||||
|
[emacs_cv_prog_cc_nopie=yes],
|
||||||
|
[emacs_cv_prog_cc_nopie=no])
|
||||||
|
LDFLAGS=$emacs_save_LDFLAGS])
|
||||||
|
if test "$emacs_cv_prog_cc_nopie" = yes; then
|
||||||
|
# Disable PIE to avoid segfaults in temacs (bug#18784)
|
||||||
|
LD_SWITCH_SYSTEM_TEMACS="$LD_SWITCH_SYSTEM_TEMACS -nopie"
|
||||||
|
fi
|
||||||
|
|
||||||
if test x$ac_enable_profiling != x ; then
|
if test x$ac_enable_profiling != x ; then
|
||||||
case $opsys in
|
case $opsys in
|
||||||
*freebsd | gnu-linux) ;;
|
*freebsd | gnu-linux) ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue