mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 04:15:36 +02:00
(__libc_stack_end): Actually use the value in __libc_stack_end for
something so that the access doesn't get optimized away. Thanks to Matthias Koeppe!
This commit is contained in:
parent
265c456f2f
commit
c89363e6c6
1 changed files with 3 additions and 2 deletions
|
@ -603,8 +603,9 @@ AC_CHECK_FUNCS(sethostent gethostent endhostent dnl
|
|||
|
||||
AC_MSG_CHECKING(for __libc_stack_end)
|
||||
AC_CACHE_VAL(guile_cv_have_libc_stack_end,
|
||||
[AC_TRY_LINK([extern char *__libc_stack_end;],
|
||||
[char *p = __libc_stack_end;],
|
||||
[AC_TRY_LINK([#include <stdio.h>
|
||||
extern char *__libc_stack_end;],
|
||||
[printf("%p", (char*) __libc_stack_end);],
|
||||
guile_cv_have_libc_stack_end=yes,
|
||||
guile_cv_have_libc_stack_end=no)])
|
||||
AC_MSG_RESULT($guile_cv_have_libc_stack_end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue