Closed deatondg closed 3 years ago
zlib is an apple provided lib, we don't have pkgconfig stuff for it, so just edit the libpng.pc to remove the zlib dep and add -lz to you LDFLAGS.
Oh, I see. I already have a copy of zlib building in Procursus. Is it worth submitting that?
Please do not, it will conflict with apple, you could submit a patch to remove the zlib dependency from libpng.pc however.
Gotcha. Alternatively, would it be a good idea to make a zlib package which just provides the pkgconfig file so that anything else depending on zlib from pkg-config will know where to find it?
I think it'd be better to just patch the pkgconfig files to remove it as a dep but leave the stuff to link it. Although having a pkgconfig for zlib may not be a bad idea if a configure script is looking for it...
Makes sense to me. Thanks for the info! I appreciate it.
On my system, a configure script is looking for it, but I can just make that for myself until someone else requests it. I’ll make a PR which fixes the pkgconfig file from libpng in a little bit.
Running
pkg-config --libs libpng
results inbut zlib is not in Procursus.
I will fix this with a PR (that also fixes a few other small things) in a few minutes.