www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/27/03:19:18

Date: Tue, 27 Apr 1999 10:16:01 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: DJ Delorie <dj AT delorie DOT com>
cc: djgpp-workers AT delorie DOT com
Subject: Re: v2.03: wrapping up
In-Reply-To: <199904261652.MAA06425@envy.delorie.com>
Message-ID: <Pine.SUN.3.91.990427101542.18849D-100000@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019