delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/06/12:30:50

Date: Mon, 6 Jul 1998 18:30:15 +0200 (MET DST)
From: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
To: Blake McCurdy <am898 AT chebucto DOT ns DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: linking huge project
In-Reply-To: <6nqq28$qbu$2@News.Dal.Ca>
Message-ID: <Pine.UW2.3.95.980706182302.22520A-100000@bryggen.bgnett.no>
MIME-Version: 1.0

On 6 Jul 1998, Blake McCurdy wrote:

> I have an incredibly big project ( 40, 45 object files ), and my dos
> command line balks. It will take the first 125 chars or so, and then
> complains that it cannot find the file that it created truncting my cmd
> line. IE hand.o truncated into ha, linker complains cannot find "ha" no
> such file or directoryEnonet. How do I get around this. I'm actually
> making it into a libray, not linking.

Use a response file. e.g:

ar rvs @file.rsp

where file.rsp contains a list of all the .o files.
file.rsp can be generated automatically by make. OTOH, do something
like:

libfile.a: file.rsp
           ar rvs @file.rsp

file.rsp: makefile
          echo $(OBJS) > $<

BTW. Borland's make has the inline file-operator which AFAIK lacks
in GNU make:

libfile.a:
         ar rvs @&&|
         $(OBJS)
|

Anybody know how to accomplish the same with GNU-make?


Gisle V.

- Raw text -


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