Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LD_LIBRARY_PATH

3 views
Skip to first unread message

gaut...@gmail.com

unread,
May 5, 2009, 4:25:00 AM5/5/09
to
Hi,
Is there a way/option/flag for the linker to ignore LD_LIBRARY_PATH
set on LINUX while linking the shared libraries?

Thanks,
Gautam.

Erik Max Francis

unread,
May 5, 2009, 4:29:44 AM5/5/09
to
gaut...@gmail.com wrote:
> Is there a way/option/flag for the linker to ignore LD_LIBRARY_PATH
> set on LINUX while linking the shared libraries?

Unset the environment variable before linking.

--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M, Skype erikmaxfrancis
Love has no heart.
-- Ned Rorem

gaut...@gmail.com

unread,
May 5, 2009, 4:44:56 AM5/5/09
to
On May 5, 1:29 pm, Erik Max Francis <m...@alcyone.com> wrote:

> gautam...@gmail.com wrote:
> > Is there a way/option/flag for the linker to ignore LD_LIBRARY_PATH
> > set on LINUX while linking the shared libraries?
>
> Unset the environment variable before linking.
>
> --
> Erik Max Francis && m...@alcyone.com &&http://www.alcyone.com/max/

>   San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M, Skype erikmaxfrancis
>    Love has no heart.
>     -- Ned Rorem

I wanted to know like we have -i option to the linker on solaris to
ignore LD_LIBRARY_PATH, is their any option on Linux also?
This is needed to disable this env variable for everyone in multi-
development so that even if anyone sets it, he should not be able to
make use of it.

-Gautam.

Erik Max Francis

unread,
May 5, 2009, 4:56:39 AM5/5/09
to

LD_LIBRARY_PATH= ld ...

--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/

0 new messages