Re: Notes on the new libpng3.
On Mon, Oct 28, 2002 at 11:45:41AM +0900, Junichi Uekawa wrote:
> Also, upstream decided that libpng is not long to link with
> libz and libm itself, and applications are going to need to
> link with "-lpng -lz -lm" themselves.[1]
> That sounds wrong, and I patched it for now.[2]
>
> I am discussing about it with upstream but the upstream considers
> that to be a wrong way to link libpng.
> (of course, a makefile which says "-lpng" only will only work
> with systems with shared libraries with interdependency
> information, and when linking against shared libraries.
FWIW, I agree with you here. Linking libpng with libz and libm is the sane
thing to do.
Makefiles shouldn't say "-lpng" anyway; they should use pkg-config --libs
libpng or such.
--
- mdz
Reply to: