uwimap: fix build using gcc14 and recompile for library/security/openssl-3
[oi-userland.git] / components / desktop / libreoffice / patches / 08-ljpeg-turbo.patch
blob85ab62407f6b41d407c50752507be82583051fd8
1 This ugly hack allows us to use libjpeg-turbo.
2 Perhaps, one should find a better way to pass LDFLAGS to libvcllo.
3 Without this, it uses libjpeg-turbo headers and links to default libjpeg.so and fails with
5 Undefined symbol jpeg_core_output_dimensions
7 --- libreoffice-6.4.3.2/configure.ac.1 2020-04-21 10:53:07.830278273 +0000
8 +++ libreoffice-6.4.3.2/configure.ac 2020-04-21 10:53:48.903243819 +0000
9 @@ -8115,7 +8115,7 @@
10 SYSTEM_LIBJPEG=TRUE
11 AC_CHECK_HEADER(jpeglib.h, [ LIBJPEG_CFLAGS= ],
12 [AC_MSG_ERROR(jpeg.h not found. install libjpeg)], [])
13 - AC_CHECK_LIB(jpeg, jpeg_resync_to_restart, [ LIBJPEG_LIBS="-ljpeg" ],
14 + AC_CHECK_LIB(jpeg, jpeg_resync_to_restart, [ LIBJPEG_LIBS="-L/usr/lib/libjpeg8-turbo/lib -R/usr/lib/libjpeg8-turbo/lib -ljpeg" ],
15 [AC_MSG_ERROR(jpeg library not found or functional)], [])
16 else
17 SYSTEM_LIBJPEG=