posted September 12, 2001 11:53 AM
I'm trying to compile zlib and libpng. (I'm trying to set up enlightenment and it wants a newer version of libpng.dylib...) I can configure, make, and test both libraries, but the created files are .a libraries, and I'm needing the .dylib! Does anybody know if it's possible to generate a .dylib from the .a file? or do I need to change the makefile and add some sort of dynamic flag?
Posts: 10 | Registered: Sep 2001
| IP: Logged
chrisp
Junior Member
Member # 35
posted September 13, 2001 06:28 AM
You can find a lot of information about shared libraries on Darwin in the Porting Tips at the Fink website. In general it's not possible to create shared libs from a static archive, but on Darwin you can do that if you compiled the objects in the static archive with '-fno-common'.
In the case of zlib and libpng you'll have to patch the Makefiles. You can find patches for zlib 1.1.3 and libpng 1.0.12 in the Fink CVS repository. libpng 1.2.0 may already contain the necessary patches, I haven't checked yet.