public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* static for some, but not all
@ 2002-05-07 13:43 Sam Halliday
  2002-05-07 15:40 ` bjorn rohde jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Sam Halliday @ 2002-05-07 13:43 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: static for some, but not all
  2002-05-07 13:43 static for some, but not all Sam Halliday
@ 2002-05-07 15:40 ` bjorn rohde jensen
  0 siblings, 0 replies; 2+ messages in thread
From: bjorn rohde jensen @ 2002-05-07 15:40 UTC (permalink / raw)
  Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-07 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-07 13:43 static for some, but not all Sam Halliday
2002-05-07 15:40 ` bjorn rohde jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).