This is the mail archive of the
mailing list for the GCC project.
Re: paths for headers and libraries
- From: Andrea 'Fyre Wyzard' Bocci <fwyzard at inwind dot it>
- To: Ross Smith <r-smith at ihug dot co dot nz>,"'gcc at gnu dot org'" <gcc at gnu dot org>
- Date: Sun, 17 Feb 2002 15:25:28 +0100
- Subject: Re: paths for headers and libraries
- References: <7118259C3044D311942700508B2CA5BB9DD6F4@balance.coactive.com>
At 15.20 16/02/2002 (GMT +1300), Ross Smith wrote:
>At the moment I'm using $LIBRARY_PATH to work around this, but that's an
>annoying wart and anyway it isn't a global solution (I have to set the
>variable in my .bashrc and root's, and then what if I give somebody else
>an account?). Using -L in makefiles isn't an option, because it probably
>won't be appropriate to other systems.
You could set it in /etc/profile. This way, everybody's bash wold
automatically get that.
Don't know about other shells, though.
>Can anybody explain a general solution to this? A way of changing the
>link search path globally and permanently? I've searched the ld docs but
>can't find anything relevant.
>Ross Smith ...................................... Auckland, New Zealand
>firstname.lastname@example.org ......................... http://storm.net.nz/~ross/
> "We need a new cosmology. New gods. New sacraments. Another drink."
> -- Patti Smith