freebsd-ports/editors/libreoffice/files/patch-RepositoryExternal.mk
Dima Panov c8b6581835 editors/libreoffice: force PDFium to link with OpenJPEG (+)
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.

While here, add py310 to allowed versions to the build

PR:		262008
Submitted by:	Florian Walpen <dev@submerge.ch>
Sponsored by:	Netzkommune GmbH
2022-03-06 19:37:48 +03:00

11 lines
366 B
Makefile

--- RepositoryExternal.mk.orig 2022-02-28 18:19:33 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 \