This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: paths for headers and libraries


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
>r-smith@ihug.co.nz ......................... http://storm.net.nz/~ross/
>   "We need a new cosmology. New gods. New sacraments. Another drink."
>                                                        -- Patti Smith


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]