www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/02/02:55:14

Date: Fri, 2 Apr 1999 09:54:54 +0200 (MET DST)
From: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
To: djgpp AT delorie DOT com
Subject: Empty commands in make 3.77
Message-ID: <Pine.UW2.3.95.990402095354.311A-100000@bryggen.bgnett.no>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

I've discovered what I regard as a rather serious bug in make 3.77.
By accident I forgot to put "include makefile.cfg" in my makefile
before these rules:
 
  all:    libvgagl.a
 
  libvgagl.a: $(OBJECTS)
        ar rcs libvgagl.a $(OBJECTS)
        $(CP) $@ $(DJDIR)/lib
 
$(CP) expands to `' causing `libvgagl.a e:/djgpp/lib' to be executed.
`CP = cp.exe' was in `makefile.cfg'.
 
This "shell command" resulted in crash inside DOS (seg 273h) and some
lost clusters. No serious harm done (chkdsk fixed it).
 
What is make trying to do here? And how on earth can an archive
be executed like this?
 
Gisle V.


- Raw text -


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