public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* g++ dynamic library search setting
@ 2003-02-13 19:39 Hillel (Sabba) Markowitz
  2003-02-14  4:27 ` Bharathi S
  0 siblings, 1 reply; 2+ messages in thread
From: Hillel (Sabba) Markowitz @ 2003-02-13 19:39 UTC (permalink / raw)
  To: GCC Help

We have gcc installed in /usr/local/GCC rather that /usr/local.  If we build 
with the --enable-shared option, then g++ and g77 are unable to find the 
required libraries.  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?

KDE for example requires that gcc be built in shared mode as does linux so 
--disable-shared, while apparently working on many systems, does cause 
problems and should be avoided.

-- 
Said the fox to the fish, "Join me ashore".
 The fish are the Jews, Torah is our water

Hillel (Sabba) Markowitz - sabbahem@bcpl.net

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: g++ dynamic library search setting
  2003-02-13 19:39 g++ dynamic library search setting Hillel (Sabba) Markowitz
@ 2003-02-14  4:27 ` Bharathi S
  0 siblings, 0 replies; 2+ messages in thread
From: Bharathi S @ 2003-02-14  4:27 UTC (permalink / raw)
  To: Hillel (Sabba) Markowitz; +Cc: GCC Help

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. (_/\

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-02-14  4:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-13 19:39 g++ dynamic library search setting Hillel (Sabba) Markowitz
2003-02-14  4:27 ` Bharathi S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).