How to build an RPATH into gcc?

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


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.

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


paul



More information about the Gcc mailing list