From 1e633df8d03fa04046f8b85cc101b1241918a640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 14 Aug 2022 15:42:29 +0100 Subject: [PATCH] without -O2 _FORTIFY_SOURCE gives a warning --- libreoffice.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libreoffice.spec b/libreoffice.spec index 8647083..1aeed9e 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1039,8 +1039,7 @@ for i in $RPM_OPT_FLAGS; do %ifarch s390x # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106355 case "$i" in - -O2) - ARCH_FLAGS="$ARCH_FLAGS -O0" + -O2|-Wp,-D_FORTIFY_SOURCE=2) continue;; esac %endif