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


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