delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/22/12:45:07

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: makefile
Date: 22 May 2002 16:36:04 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 27
Message-ID: <acghdk$3uo$1@nets3.rz.RWTH-Aachen.DE>
References: <Xns9216B89F7DDC3adminraf256com AT 213 DOT 180 DOT 128 DOT 20>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1022085364 4056 137.226.32.75 (22 May 2002 16:36:04 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 22 May 2002 16:36:04 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Rafal 'Raf256' Maj <admin AT raf256 DOT com> wrote:

> 1) what should I do when there will bo to much objects, so last command 
> line (ar crs upi.a u_mem.o 2.o 3.o etc...) will be longer then 255 
> characters ? 

Stop using a .bat file for this.  A true 'Makefile' to be run by
'make' is what you should use --- it's really easy once you understand
what you want to do, and how to tell 'make' about it.

Or, if you really want to stick with a .bat: use a response file that
holds the list of .o's for you:

	ar rcs libfoo.a @ofiles.lst

where "ofiles.lst" is a text file that holds the full list of .o files
you want to link. 

> 2) I looked into final .a file, it had many imho unnecessary informations, 
> how can I shrink it ? 

You had better leave it to the GCC and binutils authors to decide what
is necessary and what isn't, in an .o or .a file.

-- 
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