delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/18/14:55:17

Date: Tue, 18 Jan 2000 10:10:14 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: make depend
In-Reply-To: <Pine.UW2.3.95.1000117212419.28382B-100000@bryggen.bgnett.no>
Message-ID: <Pine.A41.4.05.10001180942350.75156-100000@ieva01.lanet.lv>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: dj-admin AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

~

On Mon, 17 Jan 2000, Gisle Vanem wrote:

> Andris Pavenis <pavenis AT lanet DOT lv>
> 
> > Simply this was best I was able to do to get version automatically in
> > using definition in gcc specs.
> 
> Why couldn't '__DJGPP__', '__DJGPP_MINOR__' etc. be put in the specs
> file? (updating 'specs' when a new djgpp version is released).

DJGPP ports of GCC are not released synchronous with DJGPP released.
Also one can use different versions of DJGPP together with different
versions of GCC (with some limitations: eg. gcc-2.95.X will not work with
DJGPP-2.00 and 2.01). Therefore library version should be defined in
djdevXXX.zip distribution but not in GCC binary archive.  

Other thing is that for example in Linux GCC by itself does not know
version of libc unless needed include files aare included. 

> 
> This "feature" thus contradicts the info-pages for -MM, -MMD, -MG
> switches:
> 
>   `-MM'
>        Like `-M' but the output mentions only the user header files
>        included with `#include "FILE"'.  System header files included
>        with `#include <FILE>' are omitted.

sys/version.h is included using CPP command line option
	-imacros file
Perhaps it should be omitted with -MM. But it seems it's not so.
I sent a message to related GCC mailing list (gcc-bugs)

Andris

- Raw text -


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