Here is a revised diff with comments added for the flags.
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 8343f8ffc6..ea7f0f19e9 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -1235,6 +1235,12 @@ (define (install-appdata app)
;; when our default compiler is >=GCC 6.
"--disable-pdfium"
"--without-doxygen"
+ ;; Enable building with LTO to avoid linker errors about
+ ;; non-virtual thunks on i686-linux.
+ "--enable-lto"
+ ;; Disable galleries to avoid errors rebuilding the Gtk icon
+ ;; cache, at least on i686-linux.
+ "--without-galleries"
"--enable-build-opensymbol")))
(native-inputs
(list bisonbug#59519: LibreOffice 7.3.5.2 fails to build on i686-linux
Kaelyn via Bug reports for GNU Guix Fri, 25 Nov 2022 18:03:34 -0800
- bug#59519: LibreOffice ... Ludovic Courtès
- bug#59519: LibreOf... Ricardo Wurmus
- bug#59519: Lib... Ricardo Wurmus
- bug#59519: LibreOf... Kaelyn via Bug reports for GNU Guix
- bug#59519: LibreOf... Kaelyn via Bug reports for GNU Guix
- bug#59519: LibreOf... Kaelyn via Bug reports for GNU Guix
- bug#59519: Lib... Tobias Geerinckx-Rice via Bug reports for GNU Guix
