Mail Archives: djgpp-workers/1999/04/27/03:19:18
On Mon, 26 Apr 1999, DJ Delorie wrote:
> Could we have the specs add -i or something, so that gcc always
> #includes a special version file when compiling?
That's what I suggested a year ago when this problem was discussed in
the context of GCC 2.8.x. I think using "-imacros" to include
sys/version.h will solve this cleanly and reliably.
The problem is that there seems to be no way of having specs expand
environment variables (last time I looked), so you cannot expand
$DJDIR or $C_INCLUDE_PATH to know the exact path to sys/version.h, and
"-imacros" doesn't look along the include parth automatically (again,
last time I checked).
Perhaps some of this has changed since then, and the solution is just
waiting to be discovered?
Could someone please look at the latest GCC/EGCS sources and see if
there is some way of including a header whose name is relative to the
include directory?
- Raw text -