Kaydet (Commit) 5cbbd7d8 authored tarafından Kacper Kasper's avatar Kacper Kasper Kaydeden (comit) Michael Meeks

Fix stack protector check

* "return 0;" is not enough to trigger it.

Change-Id: I5a011f664aec30096cd5d26a1f94a0405297b1db
Reviewed-on: https://gerrit.libreoffice.org/58437
Tested-by: Jenkins
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst 3dfc17ed
...@@ -5923,7 +5923,7 @@ if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then ...@@ -5923,7 +5923,7 @@ if test "$GCC" = "yes" -o "$COM_IS_CLANG" = TRUE; then
AC_MSG_CHECKING([whether $CC supports -fstack-protector-strong]) AC_MSG_CHECKING([whether $CC supports -fstack-protector-strong])
save_CFLAGS=$CFLAGS save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -fstack-protector-strong" CFLAGS="$CFLAGS -Werror -fstack-protector-strong"
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ return 0; ]])],[ HAVE_GCC_STACK_PROTECTOR_STRONG=TRUE ],[]) AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[ char a[8]; return 0; ]])],[ HAVE_GCC_STACK_PROTECTOR_STRONG=TRUE ],[])
CFLAGS=$save_CFLAGS CFLAGS=$save_CFLAGS
if test "$HAVE_GCC_STACK_PROTECTOR_STRONG" = "TRUE"; then if test "$HAVE_GCC_STACK_PROTECTOR_STRONG" = "TRUE"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment