From a40f7d6135f71b25cf179e67620d144a0935256a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 14 Aug 2022 11:53:32 +0100 Subject: [PATCH] s390x -O1 doesn't work either /usr/bin/ld: /tmp/ccaNGd56.ltrans45.ltrans.o: in function `SfxMedium::CheckFileDate(com::sun::star::util::DateTime const&)': /builddir/build/BUILD/libreoffice-7.4.0.2/include/com/sun/star/uno/Reference.hxx:158: undefined reference to `.LTHUNK8' /usr/bin/ld: /builddir/build/BUILD/libreoffice-7.4.0.2/include/com/sun/star/uno/Reference.hxx:158: undefined reference to `.LTHUNK16' /usr/bin/ld: /tmp/ccaNGd56.ltrans45.ltrans.o: in function `SfxMedium::ShowLockFileProblemDialog(SfxMedium::MessageDlg)': /builddir/build/BUILD/libreoffice-7.4.0.2/include/com/sun/star/uno/Reference.hxx:158: undefined reference to `.LTHUNK8' /usr/bin/ld: /builddir/build/BUILD/libreoffice-7.4.0.2/include/com/sun/star/uno/Reference.hxx:158: undefined reference to `.LTHUNK16' /usr/bin/ld: /tmp/ccaNGd56.ltrans47.ltrans.o: in function `SfxMedium::LinkStubShowReloadEditableDialog(void*, void*)': /builddir/build/BUILD/libreoffice-7.4.0.2/include/com/sun/star/uno/Reference.hxx:158: undefined reference to `.LTHUNK8' /usr/bin/ld: /builddir/build/BUILD/libreoffice-7.4.0.2/include/com/sun/star/uno/Reference.hxx:158: undefined reference to `.LTHUNK16' collect2: error: ld returned 1 exit status --- libreoffice.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libreoffice.spec b/libreoffice.spec index 2226533..8647083 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1040,7 +1040,7 @@ for i in $RPM_OPT_FLAGS; do # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106355 case "$i" in -O2) - ARCH_FLAGS="$ARCH_FLAGS -O1" + ARCH_FLAGS="$ARCH_FLAGS -O0" continue;; esac %endif