linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shriramana Sharma <samjnaa@gmail.com>
To: linux-c-programming@vger.kernel.org
Subject: unable to link to a static library present alongside a shared library
Date: Wed, 18 Apr 2007 17:39:24 +0530	[thread overview]
Message-ID: <46260A74.90309@gmail.com> (raw)

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.

             reply	other threads:[~2007-04-18 12:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-18 12:09 Shriramana Sharma [this message]
2007-04-18 12:19 ` unable to link to a static library present alongside a shared library 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46260A74.90309@gmail.com \
    --to=samjnaa@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).