summaryrefslogtreecommitdiff
path: root/solenv/gbuild/platform
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-29 09:42:14 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-29 14:17:30 +0200
commitf9fb7afe13aa24464eecfee82c3e81e53017d74d (patch)
treea8450c07a37264c11a0777aa1f050f9130688b74 /solenv/gbuild/platform
parenta6d41c61daaf6f0822fc86d790eca19972e4a7c8 (diff)
ofz#68265 fix oss-fuzz build failure
Change-Id: I73087235d87253f4c8375fa0c0492c6258701571 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166827 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'solenv/gbuild/platform')
-rw-r--r--solenv/gbuild/platform/com_GCC_defs.mk2
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 e3e84181664a..29a1942faa7b 100644
--- a/solenv/gbuild/platform/com_GCC_defs.mk
+++ b/solenv/gbuild/platform/com_GCC_defs.mk
@@ -41,7 +41,7 @@ ifeq ($(strip $(gb_COMPILEROPTFLAGS)),)
gb_COMPILEROPTFLAGS := -O2
endif
-gb_COMPILEROPTFLAGS += $(HARDENING_OPT_CFLAGS)
+gb_COMPILEROPTFLAGS += $(if $(ENABLE_HARDENING_FLAGS),$(HARDENING_OPT_CFLAGS))
gb_AFLAGS := $(AFLAGS)