This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How to build an RPATH into gcc?
- From: prj at po dot cwru dot edu (Paul Jarc)
- To: Adrian Bunk <bunk at fs dot tum dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 06 May 2004 10:48:04 -0400
- Subject: Re: How to build an RPATH into gcc?
- Organization: What did you have in mind? A short, blunt, human pyramid?
- References: <20040506135329.GM9636@fs.tum.de>
Adrian Bunk <bunk@fs.tum.de> wrote:
> libintl and libiconv are in /usr/local/lib.
>
> LDFLAGS="-L/usr/local/lib -R/usr/local/lib" ../configure
> didn't work
Here's what I do:
- Before ./configure, edit the top-level Makefile.in to set
LDFLAGS_FOR_TARGET.
- If I'm building 2.95.*, then edit the top-level config.if to insert
" $CPPFLAGS $CFLAGS $LDFLAGS" after "${CC-cc}".
- On the "make bootstrap" command line, I set LDFLAGS, BOOT_LDFLAGS,
and HOST_LDFLAGS.
paul