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)

[...]
pull/15/head
Jan Beich 2022-07-09 22:13:42 +00:00 committed by Andri Yngvason
parent 81c9d8452c
commit ca6036f4cf
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,6 @@ sources = [
'src/rfbproto.c', 'src/rfbproto.c',
'src/sockets.c', 'src/sockets.c',
'src/vncviewer.c', 'src/vncviewer.c',
'src/turbojpeg.c',
] ]
dependencies = [ dependencies = [
@ -133,6 +132,7 @@ if sasl.found()
endif endif
if libjpeg.found() if libjpeg.found()
sources += 'src/turbojpeg.c'
dependencies += libjpeg dependencies += libjpeg
config.set('LIBVNCSERVER_HAVE_LIBJPEG', true) config.set('LIBVNCSERVER_HAVE_LIBJPEG', true)
endif endif