www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/17/14:31:29

Date: Mon, 17 Jan 2000 19:16:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gisle Vanem <gvanem AT eunet DOT no>
cc: djgpp <djgpp AT delorie DOT com>
Subject: Re: make depend
In-Reply-To: <010d01bf60ef$d8b87240$293f8589@gv015029.bgo.nera.no>
Message-ID: <Pine.SUN.3.91.1000117190924.25190E-100000@is>
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:

> Ever since installing gcc 2.95.2 (and djgpp 2.03), 'make depend' targets always
> includes extra files from $DJDIR/include. Example:
> 
>   charpool.o: charpool.c e:/djgpp/lib/../include/sys/version.h \
>    charpool.h utils.h error.h

Please show at least one example of your `depend' targets, it's very hard 
to help you without seeing how you invoke the compiler.

> With a file 'charpool.c' that only includes <stdio.h> which includes
> <sys/version.h>. Looking at <sys/version.h> I note it lacks
> "#ifndef __dj_ENFORCE_ANSI_FREESTANDING" around it as others 
> do. If this the reason?

I don't think so.  I suspect that it's the result of adding this to 
specs:  -imacros %s../include/sys/version.h.
Please try editing this out of specs and see if the problem goes away.  

Even if editing specs solves the problem, I don't think it's a solution, 
because -imacros is there for a reason (so that even in a program that 
doesn't include stdio.h __DJGPP__ and __DJGPP_MINOR__ are defined 
correctly).  Perhaps GCC has some switch that makes it ignore headers 
which come through -imacros.  If not, perhaps we need to ask for such a 
switch.  (Or perhaps you could view this as a feature: a different libc 
version does require to recompile, right? ;-)

- Raw text -


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