Date: Thu, 20 Jan 2000 19:18:01 +0200 (WET) From: Andris Pavenis To: Eli Zaretskii cc: djgpp-workers AT delorie DOT com Subject: Re: make depend In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi! There are some variants how to get sys/version.h loaded at CPP startup: -imacros %s../include/sys/version.h (currently used variant) Works OK for both for native and cross-compiler (DJGPP targetted of course). Didn't want to work at build time for gcc-2.96 snapshots -imacros /dev/env/DJDIR/include/sys/version.h Will work for native compiler but not cross-compiler. So I think it's worst from these 3. -imacros %sdjgpp.ver Were we have $prefix/lib/gcc-lib/$version/djgpp.ver containing '#include '. Should work for both native and cross-compilers however I have tested it with native compiler only (yet). This file could be distributed with gcc binaries. In future we could add $DJDIR/lib/djgpp.ver with this contents and we'll be able to remove it from DJGPP distribution Perhaps the last one looks more nice but this is my opinion only Andris PS. I still think that best would be to get rid of such hacks but if there are serious objections we should at least look at other possible variants