mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
-fstack-check generates non-working code for at least a few compilers
-fstack-check generates non-working code for at least a few compilers (egcs 1.1 included) and the benefits are dubious (your program is going to crash anyways if you run out of stack) so comment that out for now.
This commit is contained in:
parent
e02079098f
commit
5ccc68d010
22
configure.in
22
configure.in
@ -660,17 +660,17 @@ if test x"$have_threads" != xnone; then
|
||||
AC_MSG_WARN($FLAG_DOES_NOT_WORK))
|
||||
CPPFLAGS=$old_CPPFLAGS
|
||||
|
||||
if test x"$GCC" = xyes; then
|
||||
# older gcc's do not know the -fstack-check option and will
|
||||
# stop compiling, so just check this here
|
||||
old_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS -fstack-check"
|
||||
AC_TRY_COMPILE(,,
|
||||
G_THREAD_CFLAGS="$G_THREAD_CFLAGS -fstack-check")
|
||||
CPPFLAGS=$old_CPPFLAGS
|
||||
else
|
||||
AC_MSG_WARN($THREAD_UNKNOWN_COMPILER)
|
||||
fi
|
||||
# if test x"$GCC" = xyes; then
|
||||
# # older gcc's do not know the -fstack-check option and will
|
||||
# # stop compiling, so just check this here
|
||||
# old_CPPFLAGS="$CPPFLAGS"
|
||||
# CPPFLAGS="$CPPFLAGS -fstack-check"
|
||||
# AC_TRY_COMPILE(,,
|
||||
# G_THREAD_CFLAGS="$G_THREAD_CFLAGS -fstack-check")
|
||||
# CPPFLAGS=$old_CPPFLAGS
|
||||
# else
|
||||
# AC_MSG_WARN($THREAD_UNKNOWN_COMPILER)
|
||||
# fi
|
||||
|
||||
AC_MSG_CHECKING(necessary compiler options)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user