This is the mail archive of the gcc-help@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: Modify GCC libraries path


stl <st.lambert02@gmail.com> writes:

> I would like to know if I can modify the path where GCC expects to
> find libraries,
> notably libraries from standard libc?
> If so, where should I change this path?

You can use a -L option on the command line.  You can use a shell script
to pass those -L options by default.  You can set the environment
variable LIBRARY_PATH.

If you really want to modify gcc itself, see gcc/cppdefault.c.

Ian


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