On Friday, March 30, 2001, at 08:32 AM, System Administrator wrote:
> I'm trying to compile gd-2.0.0b and I get this error:
>
> ld: unknown flag: -shared
>
> Tom Boutell's Makefile says this:
>
> "#Shared library. This should work fine on any ELF platform (Linux,
> etc.) with
> #GNU ld or something similarly intelligent. To avoid the chicken-and-egg
> #problem, this target also installs the library so that applications can
> #actually find it."
>
> And then includes this snippet of code:
>
> ld -shared -o libgd.so.${VERSION} ${LIBOBJS}
>
> Does OSX have that "something similarly intelligent" ?
Just remove the -ld from all LIBS lines in your various makefiles. The
functionality is there, just not the library.
It would be nice if we could make a blank library called ld so we don't
have to do this all the time.... Anybody have experience with this sort
of trickery?
Randal