[Bug 262008] editors/libreoffice failed to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 05 Mar 2022 22:58:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262008

Florian Walpen <dev@submerge.ch> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |office@FreeBSD.org
 Attachment #232274|                            |maintainer-approval?(office
              Flags|                            |@FreeBSD.org)

--- Comment #46 from Florian Walpen <dev@submerge.ch> ---
Created attachment 232274
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232274&action=edit
Fix build with PDFIUM and LTO enabled.

This supposedly fixes the build failure with PDFIUM and LTO enabled:

When libvcllo.so is linked together with libpdfiumlo.so, it also needs
libopenjp2.so from graphics/openjpeg, since pdfium depends on that.
Building with LTO exposes this as an error, complaining about undefined
references to openjpeg library functions.

This patch adds the missing linker flag "-lopenjp2".

Tested on 13.0-RELEASE-p7, successfully opened some documents.

What puzzles me is that the LTO package seems to use more disk space than the
one without LTO. But I don't have time to investigate now.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.