This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: make not using correct LDFLAGS
- From: Ian Lance Taylor <iant at google dot com>
- To: Aaditya kumar <passion dot for dot systems at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 02 Jul 2010 07:32:59 -0700
- Subject: Re: make not using correct LDFLAGS
- References: <AANLkTimXco8ygezsC1Tqeq6sK2BR5mUDyuuT8z6B8CGX@mail.gmail.com> <AANLkTilPv7OdYwhyLMrP11SHlRtyx_LK5MFPaEhoNnls@mail.gmail.com>
Aaditya kumar <passion.for.systems@gmail.com> writes:
> ÂÂÂÂÂÂÂÂÂ But the build fails because make cant find those library
> (LDFLAGS is empty string in config.log in
> x86_64-unknown-linux-gnu/libgcc direcotry ).
> ÂÂÂÂÂÂÂÂÂ this is the same directory where the build fails.
LDFLAGS is used when building the tools. The error you are reporting
occurs when running the tools. The usual fixes are 1) set
LD_LIBRARY_PATH so that the dynamic libraries can be found at runtime;
2) adjust /etc/ld.so.conf for the same effect; 3) when you build the
supporting libraries, pass --disable-shared when you configure them.
Ian