linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* unable to link to a static library present alongside a shared library
@ 2007-04-18 12:09 Shriramana Sharma
  2007-04-18 12:19 ` cyon.john
  2007-04-18 15:12 ` Glynn Clements
  0 siblings, 2 replies; 12+ messages in thread
From: Shriramana Sharma @ 2007-04-18 12:09 UTC (permalink / raw)
  To: linux-c-programming

I read recently that someone was not able to link statically to a 
library which was placed alongside a shared library. Having gained some 
knowhow from the good people on this list I checked first the ld manpage 
and found this:

ld will search a directory for a library with an extension of .so before 
searching for one with an extension of .a.

Does anyone know of a way to subvert this behaviour and force linking to 
the static library?

Also, why is this behaviour made this way? Is there a reason or is it 
arbitrary?

Thanks as ever, for all your help.

Shriramana Sharma.

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

end of thread, other threads:[~2007-04-19 16:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-18 12:09 unable to link to a static library present alongside a shared library Shriramana Sharma
2007-04-18 12:19 ` cyon.john
2007-04-18 12:33   ` Shriramana Sharma
2007-04-18 14:00     ` cyon.john
2007-04-18 17:34       ` Shriramana Sharma
2007-04-18 15:12 ` Glynn Clements
2007-04-18 18:40   ` Shriramana Sharma
2007-04-18 20:18     ` Glynn Clements
2007-04-19 10:10       ` Shriramana Sharma
2007-04-19 12:34         ` leslie.polzer
2007-04-19 13:48           ` Shriramana Sharma
2007-04-19 16:30             ` leslie.polzer

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 NNTP newsgroup(s).