How to build an RPATH into gcc?

Adrian Bunk bunk@fs.tum.de
Sat May 8 03:26:00 GMT 2004


On Fri, May 07, 2004 at 03:46:00PM -0700, Jim Wilson wrote:
> Adrian Bunk wrote:
> >I'm not looking for a way to add an rpath to binaries linked with the 
> >gcc libs.
> >I am looking for a way to add an rpath to the gcc binaries themselves.
> 
> It is the same issue once removed.  Modify a copy of gcc to 
> automatically add an -rpath option by hacking the specs files, and then 
> use it to compile another copy of gcc.  The second copy will have rpath 
> built into it.

That's what I'm doing.

Neither the rpath option in the specs file nor the LDFLAGS work.

> You can probably even do this with just one build if you modify the 
> specs in the gcc sources before building it.

Please tell me what exactly I should do.

Until now, all suggestions people had were simply non-working.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed



More information about the Gcc mailing list