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 bison




Reply via email to