2015.06.16 14:39 "[Tiff] CMake support for building libtiff", by Roger Leigh

2015.06.23 13:01 "Re: [Tiff] 4.0.4beta: Symbol differences on Unix and Windows", by Bob Friesenhahn

Linux/FreeBSD/ELF exports all non-static symbols by default and this is usually unwanted. In this case, Windows is ahead of default ELF linkage.

Wait, what? You can either use GCC Visibility[1] or linker version script that are already in use for GNU ld in libtiff/Makefile.am. It's just the libtiff.map that's broken, since it exports all symbols by default since it contains instructions to export all symbols:

Yes, of course. Unfortunately, this should have been done when 4.0.0 was first produced. If we do it now, then it changes the ABI and something might break. There is also risk of some problem on non-Linux systems that would need to be worked out. Libtiff can't be dependent on GCC so it would need to use the linker map approach.

We could add a configure option to enable it.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/