From ca6036f4cf7684fd0f7b8e84d99302406d8786fe Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sat, 9 Jul 2022 22:13:42 +0000 Subject: [PATCH] meson: unbreak when libjpeg isn't found ld: error: undefined symbol: jpeg_destroy_compress >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(tjDestroy) ld: error: undefined symbol: jpeg_destroy_decompress >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(tjDestroy) ld: error: undefined symbol: jpeg_std_error >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(_tjInitCompress) >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(_tjInitDecompress) ld: error: undefined symbol: jpeg_CreateCompress >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(_tjInitCompress) [...] --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 1ed1506..912b74b 100644 --- a/meson.build +++ b/meson.build @@ -80,7 +80,6 @@ sources = [ 'src/rfbproto.c', 'src/sockets.c', 'src/vncviewer.c', - 'src/turbojpeg.c', ] dependencies = [ @@ -133,6 +132,7 @@ if sasl.found() endif if libjpeg.found() + sources += 'src/turbojpeg.c' dependencies += libjpeg config.set('LIBVNCSERVER_HAVE_LIBJPEG', true) endif