static for some, but not all

bjorn rohde jensen shamus@tdcadsl.dk
Tue May 7 15:40:00 GMT 2002


Hi Sam,

 So far i have resorted to passing options to the linker using
-Wl,-Bstatic and -Wl,-Bdynamic to switch back and forth between
static and dynamic libs. It is a crude way to do it, and you have
to check the linker for docu on the proper options etc.

Yours sincerely,

Bjorn

Sam Halliday wrote:
> 
> hello there,
> 
> i am trying to build a binary that includes some libs as static and others as
> dynamic, does anyone know how would i do that? i fit helps matters, the lib i
> want dynamic is an X lib, -lXext
> 
> (please CC any responses to this address)
> thanks in advance!
> Sam
> --
> Look before you leap.
>                 -- Samuel Butler



More information about the Gcc-help mailing list