This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to build an RPATH into gcc?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]