g++ dynamic library search setting

Bharathi S bharathi@lantana.tenet.res.in
Fri Feb 14 04:27:00 GMT 2003


On Thu, 13 Feb 2003, Hillel (Sabba) Markowitz wrote:

> We want to set up gcc to search /usr/local/GCC/lib when compiling
> *without* having to set up LD_LIBRARY_PATH.  Is there a way of doing
> this?

 -Ldir Add directory dir to the list of directories to be searched for
       `-l'.

  Kindly read the LINKER Options and DIRECTORY Options Sections of GCC
  man page. 

HTH :)
-- 
Bharathi S, IndLinuX Team, (__)
DONLab,     TeNeT Group,   oo /
IIT-Madras, Chennai-INDIA. (_/\



More information about the Gcc-help mailing list