summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-04-29 09:42:14 +0100
committerMiklos Vajna <vmiklos@collabora.com>2024-05-06 08:42:50 +0200
commit6a61c9bf1902553f1b9b20d83962de640903600c (patch)
tree02f98e646cd12ecd052866460bd655deefb838d8 /solenv
parentd78938768c6f8dbc0917184c8daa0c381400bff7 (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 (cherry picked from commit f9fb7afe13aa24464eecfee82c3e81e53017d74d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166837 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'solenv')
-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 aaba5ebb0625..9029ece94f60 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)