diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-22 15:11:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-04-22 20:44:23 +0200 |
commit | 0cf755adbb39591e9f6d273bfe5dce2469a86dbf (patch) | |
tree | af81a541124211910b163713aa14a07fa3532c1c /solenv | |
parent | 53ab6269215d4e37af3f9dfaae2a306e040c5b88 (diff) |
add undefining FORTIFY_SOURCE to the gcc no-opt flags
We build non-optimized files by adding the no-opt flags to the compiler
options that include the optimized flags, so add undefining
FORTIFY_SOURCE to the -O0 line
motivation here to have --enable-hardening-flags not add unhelpful
extra warnings to the build for the parts built with -O0
Change-Id: Ib5416ad7f9f5ef907d7c767a5ebff6343b035cfe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166458
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/com_GCC_defs.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gbuild/platform/com_GCC_defs.mk b/solenv/gbuild/platform/com_GCC_defs.mk index a09ee850e96a..e3e84181664a 100644 --- a/solenv/gbuild/platform/com_GCC_defs.mk +++ b/solenv/gbuild/platform/com_GCC_defs.mk @@ -223,7 +223,7 @@ gb_PrecompiledHeader_EXCEPTIONFLAGS := $(gb_LinkTarget_EXCEPTIONFLAGS) gb_PrecompiledHeader_ignore_flags_for_flags_file := -Wunused-macros # optimization level -gb_COMPILERNOOPTFLAGS := -O0 -fstrict-aliasing -fstrict-overflow +gb_COMPILERNOOPTFLAGS := -O0 -Wp,-U_FORTIFY_SOURCE -fstrict-aliasing -fstrict-overflow gb_COMPILERDEBUGOPTFLAGS := -Og ifeq ($(OS),ANDROID) |