2023.10.25 20:02 "[Tiff] libtiff configure questions on linking to different jpeg shared library name?", by Ellen Johnson

2023.10.25 20:02 "[Tiff] libtiff configure questions on linking to different jpeg shared library name?", by Ellen Johnson

Hi libtiff developers!

We just upgraded to libtiff v4.6.0 and want to build it with our recently added libjpeg-turbo v3.0.0.

Unfortunately we had to symbol version libjpeg-turbo on Linux (on top of its existing symbol versions) to avoid symbol collisions with other libjpeg versions. As part of this work, we slightly modified the libjpeg-turbo shared library name on Linux, Mac, and Windows - for example on Linux, instead of the shared library libjpeg.so.62.4.0, we named it libmwjpeg.so.62.4.0.

In our libtiff makefile, we use configure on Linux and Mac and CMake on Windows. I think I figured out the CMake option to link libtiff to our libjpeg-turbo DLL, but I'm not sure how to modify the libtiff configure scripts to get Linux and Mac to do the same.

I see in the libtiff main folder there's both a configure and configure.ac file, and both have commands that link to libjpeg - "-ljpeg". I tried changing this in both files to "-lmwjpeg" instead but that didn't work. Could you please let me know which file or files I need to modify, and whether I need to manually run autoconf or similar tools after I make the change?

Thank you so much!

ellen