How to build an RPATH into gcc?

Paul Jarc prj@po.cwru.edu
Sat May 8 05:45:00 GMT 2004


Adrian Bunk <bunk@fs.tum.de> wrote:
> On Fri, May 07, 2004 at 07:01:45PM -0400, Paul Jarc wrote:
>> Or you can set all the *LDFLAGS Makefile variables like I do.
>
> Please tell me how exactly I should set them.

gcc doesn't understand -R; only ld does.  So the flag to pass to gcc
would be -Wl,-R,/usr/local/lib.

>> - 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