delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/01/21/03:59:07

Date: Fri, 21 Jan 2000 10:24:54 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: djgpp-workers AT delorie DOT com
Subject: Re: make depend
In-Reply-To: <Pine.SUN.3.91.1000120202326.28824C-100000@is>
Message-ID: <Pine.A41.4.05.10001211017240.58004-100000@ieva01.lanet.lv>
MIME-Version: 1.0
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


On Thu, 20 Jan 2000, Eli Zaretskii wrote:

> 
> On Thu, 20 Jan 2000, Andris Pavenis wrote:
> 
> > 	-imacros %sdjgpp.ver
> > 		Were we have $prefix/lib/gcc-lib/$version/djgpp.ver
> > 		containing '#include <sys/version.h>'. 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 
> 
> Does it work with GCC 2.96?  If not, what is its advantage as compared to 
> the current method?
> 
> If it does work with 2.96, then let's switch.  Perhaps the name should be 
> different (since it's an include file); something with a .h extension.
> 
> Btw, what is the reason the current method doesn't work with 2.96?  They 
> didn't remove -imacros, I presume?
> 

I don't know why, but for gcc-2.96 gcc fails to find
../include/sys/version.h (it should searches directories where 
startup files are located so it should find it as
$prefix/lib/../include/sys/version.h) at build time (xgcc -B./ ...).

If we'll put djgpp.ver in the same directory where xgcc.exe is
located it should work better (by adding make rule for that in
gcc/config/i386/t-djgpp). As I said it should work also for
cross-compiler.

About name: I think it's better to avoid using extension .h there.
	What name do You suggest?

Also with time we could add it to DJDEV (lib/djgpp.ver)

Andris
	

- Raw text -


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