www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/13/05:13:03

Date: Tue, 13 Feb 1996 11:59:47 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Martynas Kunigelis <martynas DOT kunigelis AT vm DOT ktu DOT lt>
Cc: djgpp <djgpp AT delorie DOT com>
Subject: Re: malloc library

On Tue, 13 Feb 1996, Martynas Kunigelis wrote:

> and now something more: I think very few people need both coff and exe files
> after linking. For myself, I modified stubify.exe to *always* remove the coff
> file and changed the specs file for stubify not being invoked if -noexe option
> is specified. This makes gcc -o test test.c produce test.exe and no test. I
> find that more comfortable.

Why reinvent the wheel?  In v2.0, just saying ``gcc -o test.exe test.c''
will leave you with a .exe file and nothing else.  (The lib/specs file
tells gcc to do it.) The reason to still have ``-o test'' produce both
`test.exe' *and* `test' is for those Unix-born Makefiles which expect a
file named `test' to be produced, and won't work correctly if it ain't. 
But in those cases, your solution won't work either. 

- Raw text -


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