Date: Tue, 27 Apr 1999 10:16:01 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: v2.03: wrapping up In-Reply-To: <199904261652.MAA06425@envy.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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?