How to build an RPATH into gcc?

Adrian Bunk bunk@fs.tum.de
Sat May 8 04:56:00 GMT 2004


On Fri, May 07, 2004 at 07:01:45PM -0400, Paul Jarc wrote:
> Jim Wilson <wilson@specifixinc.com> wrote:
> > 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.
> >
> > You can probably even do this with just one build if you modify the
> > specs in the gcc sources before building it.
> 
> You have to modify the specs in the sources anyway - otherwise the
> second build will forget the rpath when it bootstraps itself.

The build fails because gcc/xgcc has no rpath unless I start the build 
with
  LD_LIBRARY_PATH=/usr/local/lib make bootstrap

> Or you can set all the *LDFLAGS Makefile variables like I do.

Please tell me how exactly I should set them.

I've already tried everything I could think of plus all the non-working
suggestions from the gcc mailing lists.

> paul

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