delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/12/01/06:28:28

Date: Mon, 1 Dec 1997 12:23:30 +0100 (MET)
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
cc: DJ Delorie <dj AT delorie DOT com>,
djgpp workers list <djgpp-workers AT delorie DOT com>
Subject: Re: alpha-971114: next round of Makefile changes
In-Reply-To: <Pine.SUN.3.91.971130131018.5422D-100000@is>
Message-ID: <Pine.LNX.3.93.971201121236.21553B-100000@acp3bf>
MIME-Version: 1.0

On Sun, 30 Nov 1997, Eli Zaretskii wrote:
> On Thu, 27 Nov 1997, Hans-Bernhard Broeker wrote:
> > 1) In src/libc/crt0, the files 'crt0.s' and 'gcrt0.s' have to be renamed,
> > otherwise 'make' won't find them (it explicitly names them in rules, so
> > the usual trick with the pattern rule %.o: %.s doesn't work here).  But
> > once they are renamed, 'gcrt0.S' still won't compile, as it #includes
> > 'crt0.s' instead of 'crt0.S'.
> 
> So we need to fix the Makefile and the sources.  Is that what you
> intend to do?

Yes, sort of. This is kind of a design decision to be made, and I'll leave
that to DJ: either fix all the sources and Makefiles to use '*.s', or
ensure that the source distribution file names are really '*.S'. My 
last set of changes favours the latter choice.

> > 2) 'make clean' in src/libc/stubs removes '*.S', but here, the files
> > generated by 'mkstubs.exe' are actually called '*.s', even on Linux. 
> 
> Seems like mkstubs.exe needs to be changed as well.

Not necessarily. As above, we can either change the makefile to clean away
'*.s' (as I did), or change mkstubs.c to actually write *.S files. 

Generally, the current Makefiles do work even for a non case-preserving
source distribution, but some quirks had been overlooked. These can either
be changed locally (using patches like the ones I sent), or globally,
by distributing the sources with the upper-case .S intact.

> > The patch set fixes 2), but for 1), I only offer a shell script to
> > do the necessary changes.
> 
> Why not change the sources and Makefiles?

That'd be the other choice, yes.

Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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