public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Linker library search path
@ 2004-08-27 15:14 Nils.Dehn
  2004-08-27 16:17 ` Eljay Love-Jensen
  0 siblings, 1 reply; 2+ messages in thread
From: Nils.Dehn @ 2004-08-27 15:14 UTC (permalink / raw)
  To: gcc-help

SuSE Linux 2.4.21-215-smp
gcc-3.4.0

My machines comes with a kerberos pre-installed (
/usr/lib/libkrb5.so.17 ).
I have a self compiled kerberos at
/db/opt/krb5-1.3.4/lib/libkrb5.so.3.2).

I'd like to compile an apache module shared library against 
my kerberos libkrb5.so.3.2 version.

Using linker options -L /db/opt/krb5-1.3.4/lib/libkrb5.so.3.2 -l krb5
and libkrb5.so.3.2 being in LD_LIBRARY_PATH I still find (using ldd)
that
my module is linked against BOTH libkrb5.so.17 AND libkrb5.so.3.2

Obviously the linker first tries to resolve the symbols using it's
default
path /usr/lib and then looks for the remaining symbols in the -L path.

How can I get the linker from looking is /usr/lib first ?

For security reasons:
I cannot alter the contents of /usr/lib.
I cannot refresh the library cache using ldconfig.

Thank you in advance

Nils



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

* Re: Linker library search path
  2004-08-27 15:14 Linker library search path Nils.Dehn
@ 2004-08-27 16:17 ` Eljay Love-Jensen
  0 siblings, 0 replies; 2+ messages in thread
From: Eljay Love-Jensen @ 2004-08-27 16:17 UTC (permalink / raw)
  To: Nils.Dehn, gcc-help

Hi Nils,

One way is to specify the fully qualified file name to your own krb5...

gcc -o myapp myapp.cpp /db/opt/krb5-1.3.4/lib/libkrb5.so.3.2/libkrb5.so.3.2

...and don't use the -L and -l parameters.

HTH,
--Eljay

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

end of thread, other threads:[~2004-08-27 15:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-27 15:14 Linker library search path Nils.Dehn
2004-08-27 16:17 ` Eljay Love-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).