|
From: Olly B. <ol...@su...> - 2003-09-25 08:52:49
|
On Thu, Sep 25, 2003 at 10:16:51AM +1000, Philip Walford wrote:
> If you still want static linking, you can ask gcc to link certain
> libraries statically. Try
>
> -Wl,-Bstatic -lmyLibrary1 -lotherLibrary -Wl,-Bdynamic
>
> Just make sure you end with -Wl,-Bdynamic so that libc is dynamically
> linked.
Neat - I think this is worth adding to the relevant FAQ answer.
Nick: If you do apply my patch, I'd suggest adding a note pointing the user
to the relevant FAQ entry.
Cheers,
Olly
|