whither specs?

Richard Henderson rth@redhat.com
Fri Jun 14 18:32:00 GMT 2002


On Fri, Jun 14, 2002 at 08:29:27PM +0200, Theodore Papadopoulo wrote:
> 1) in which config file should I specify the appropriate runpath flag.
> For this simple example, I have used the file i386/linux.h but I'm 
> not sure this is the most appropriate choice. What is the rule ??

elfos.h gets most of them.  You'll need to spend some small
amount of effort tracking down the others.  You can do this
via cross-compiler and looking at output of -E -dM.

> 2) until all configs have been updated to have the 
> RUNPATH_FLAG definition, what is the best way to warn that the
> --enable-runpath does not have any effect. It would be best if it
> could be done at configure time...

Dunno.  You can try discovering if the linker supports the
options in question.

> + # Enable the insertion of runpath directives for GCC libraries.
> + AC_ARG_ENABLE(runpath,

Do not confuse DT_RPATH with DT_RUNPATH by mis-naming these
options.

> + #ifdef ENABLE_RUNPATH
> + #ifndef RUNPATH_FLAG
> + #define RUNPATH_FLAG 0
> + #endif
> + #else
> + #undef RUNPATH_FLAG
> + #define RUNPATH_FLAG 0
> + #endif

Again, do not define this in the middle of the code.



r~



More information about the Gcc-patches mailing list