]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Disable _FORTIFY_SOURCE when building with -O0
authorAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Mon, 25 Dec 2023 10:21:04 +0000 (12:21 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Jan 2024 18:07:04 +0000 (20:07 +0200)
_FORTIFY_SOURCE requires at least -O2 optimization level.
This may result in compilation warnings. Fix it.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
hostapd/Makefile
tests/build/build-hostapd-internal.config
tests/build/build-wpa_supplicant-internal.config
wpa_supplicant/Makefile

index 51702439c6e4f12d0ed80d9f1018c12095fc2079..500098c8bae494f08261b9023f149ec5febbb3c3 100644 (file)
@@ -167,7 +167,7 @@ OBJS += ../src/eapol_auth/eapol_auth_sm.o
 
 
 ifdef CONFIG_CODE_COVERAGE
-CFLAGS += -O0 -fprofile-arcs -ftest-coverage
+CFLAGS += -O0 -fprofile-arcs -ftest-coverage -U_FORTIFY_SOURCE
 LIBS += -lgcov
 LIBS_c += -lgcov
 LIBS_h += -lgcov
index 421977eed456f7102dac00cb7ef56685460052d6..5b5d8037ed7d9fad64635280de21db60aa3696c0 100644 (file)
@@ -77,7 +77,7 @@ CONFIG_SUITEB=y
 CONFIG_MBO=y
 
 CONFIG_CODE_COVERAGE=y
-CFLAGS += -O0 -Wsign-compare
+CFLAGS += -O0 -Wsign-compare -U_FORTIFY_SOURCE
 
 CONFIG_TAXONOMY=y
 #CONFIG_FILS=y
index 574fb4b1828232ff2616a3c612b39afde0b0afa9..fb6a7b9dc378698e29fcc7a0be978025d2da5a93 100644 (file)
@@ -117,7 +117,7 @@ CONFIG_SUITEB=y
 CONFIG_MBO=y
 
 #CONFIG_CODE_COVERAGE=y
-CFLAGS += -O0 -Wsign-compare
+CFLAGS += -O0 -Wsign-compare -U_FORTIFY_SOURCE
 #CONFIG_FILS=y
 #CONFIG_FILS_SK_PFS=y
 CONFIG_PMKSA_CACHE_EXTERNAL=y
index 46e20f44a63568c1b218c404fc687fc419461f6e..9b0c3c7c8cbeea3f2fe3865ddc1eb806a31d7926 100644 (file)
@@ -188,7 +188,7 @@ CFLAGS += -Werror -DEAPOL_TEST
 endif
 
 ifdef CONFIG_CODE_COVERAGE
-CFLAGS += -O0 -fprofile-arcs -ftest-coverage
+CFLAGS += -O0 -fprofile-arcs -ftest-coverage -U_FORTIFY_SOURCE
 LIBS += -lgcov
 LIBS_c += -lgcov
 LIBS_p += -lgcov