FreeBSD Bugzilla – Attachment 232274 Details for
Bug 262008
editors/libreoffice failed to build
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix build with PDFIUM and LTO enabled.
editors-libreoffice-Fix-build-with-PDFIUM-and-LTO.patch (text/plain), 1.33 KB, created by
Florian Walpen
on 2022-03-05 22:58:16 UTC
(
hide
)
Description:
Fix build with PDFIUM and LTO enabled.
Filename:
MIME Type:
Creator:
Florian Walpen
Created:
2022-03-05 22:58:16 UTC
Size:
1.33 KB
patch
obsolete
>From 6dab0955dfac7f35f96041d0dfbe31bb623ebd71 Mon Sep 17 00:00:00 2001 >From: Florian Walpen <dev@submerge.ch> >Date: Sat, 5 Mar 2022 23:11:49 +0100 >Subject: [PATCH] editors/libreoffice: Fix build with PDFIUM and LTO. > >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". >--- > editors/libreoffice/files/patch-RepositoryExternal.mk | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 editors/libreoffice/files/patch-RepositoryExternal.mk > >diff --git a/editors/libreoffice/files/patch-RepositoryExternal.mk b/editors/libreoffice/files/patch-RepositoryExternal.mk >new file mode 100644 >index 000000000000..336262e5ef94 >--- /dev/null >+++ b/editors/libreoffice/files/patch-RepositoryExternal.mk >@@ -0,0 +1,10 @@ >+--- RepositoryExternal.mk.orig 2022-03-05 19:24:43 UTC >++++ RepositoryExternal.mk >+@@ -4203,6 +4203,7 @@ $(call gb_LinkTarget_set_include,$(1),\ >+ $$(INCLUDE) \ >+ ) >+ $(call gb_LinkTarget_use_libraries,$(1),pdfium) >++$(call gb_LinkTarget_add_libs,$(1),$(OPENJPEG2_LIBS)) >+ endef >+ $(eval $(call gb_Helper_register_libraries_for_install,OOOLIBS,ooo,\ >+ pdfium \ >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dev
:
maintainer-approval?
(
office
)
Actions:
View
|
Diff
Attachments on
bug 262008
:
231887
|
231895
|
232152
| 232274 |
232330
|
233272