At 19:31 Uhr +0100 09.03.2002, Max Horn wrote:
>OK, so I am working on PHP 4.1.2. Problem is, it tries to use gd, 
>but gd is only available as a static library. Yeah, I read the 
>comment, it is compiled with "-fno-common", but libtool still 
>refuses to link this static library against a loadable module. Hence 
>I either have to drop gd support from PHP, or the gd package has to 
>be changed to also provide a shared library.
>
>Are there fundamental problems with doing so? If yes, that should be 
>documented in the .info file. If not, I'd like to request gd to be 
>extended to provide a shared library.
>

Building a shared lib of gd could be as simple as this:

cc -dynamiclib -o libgd.1.8.dylib -install_name /sw/lib/libGL.1.dylib 
-compatibility_version 1.8 -current_version 1.8 -all_load libgd.a 
-L/sw/lib -lpng -lz -ljpeg -lfreetype


Of course, if there is a way with which I can convince to link the 
libgd.a file into a loadable module, that'd be just as fine to me.



Cheers,

Max
-- 
-----------------------------------------------
Max Horn
Software Developer

email: <mailto:[EMAIL PROTECTED]>
phone: (+49) 6151-494890

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to