How to build an RPATH into gcc?

Paul Jarc prj@po.cwru.edu
Thu May 6 15:00:00 GMT 2004


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



More information about the Gcc mailing list