Date: Sat, 05 Mar 2022 22:58:15 +0000 From: bugzilla-noreply@freebsd.org To: office@FreeBSD.org Subject: maintainer-approval requested: [Bug 262008] editors/libreoffice failed to build : [Attachment 232274] Fix build with PDFIUM and LTO enabled. Message-ID: <bug-262008-25061-hZi2EqxVCf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-262008-25061@https.bugs.freebsd.org/bugzilla/> References: <bug-262008-25061@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Florian Walpen <dev@submerge.ch> has asked FreeBSD Office Team <office@FreeBSD.org> for maintainer-approval: Bug 262008: editors/libreoffice failed to build https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262008 Attachment 232274: Fix build with PDFIUM and LTO enabled. https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232274&action=3Dedit --- Comment #46 from Florian Walpen <dev@submerge.ch> --- Created attachment 232274 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232274&action= =3Dedit 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 t= he one without LTO. But I don't have time to investigate now.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262008-25061-hZi2EqxVCf>