includes should be in AC_LANG_PROGRAM preamble

no the body

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I9377142c676efc3f0d658efa01e06a91f3f0924d
pull/8849/head
Caolán McNamara 2024-04-22 15:20:40 +01:00 committed by Miklos Vajna
parent 258c5c0ce6
commit 0db12d85bf
1 changed files with 1 additions and 1 deletions

View File

@ -958,7 +958,7 @@ if test "$enable_hardening_flags" = no -o "$host_os" = "emscripten" -o "x$with_s
save_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -Werror -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2"
AC_LINK_IFELSE(
[AC_LANG_PROGRAM(, [[#include <string.h> return 0;]])],
[AC_LANG_PROGRAM([[#include <string.h>]], [[return 0;]])],
[AC_MSG_RESULT([yes]); HARDENING_CFLAGS="$HARDENING_CFLAGS -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2"],
[AC_MSG_RESULT([no])])
CFLAGS=$save_CFLAGS