Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!fxgrp!root From: grady@fxgrp.fx.com (Steven Grady) Newsgroups: gnu.utils.bug Subject: gnumake 3.54 bug Message-ID: <1989Aug4.000007.22148@fxgrp.fx.com> Date: 4 Aug 89 00:00:07 GMT Reply-To: grady@fxgrp.fx.com (Steven Grady) Organization: FXDevelopment, Mountain View, CA Lines: 42 Gnumake 3.54 does not use the vpath mechanism to look for library files (-lfoo.a). While finding the cause of this bug, I also found another bug which prevents library files from being found in the current directory (unlike the claim in "CHANGES" under 3.51). The following patch fixes both of these problems. *** remake.c Thu Aug 3 16:58:28 1989 --- remake.c.new Thu Aug 3 16:58:24 1989 *************** *** 704,713 **** if (mtime == (time_t) -1) mtime = name_mtime (name + 4); if (mtime == (time_t) -1) ! mtime = name_mtime (name + 8); if (mtime == (time_t) -1) { ! char *newname = name; if (vpath_search (&newname)) { mtime = name_mtime (newname); --- 704,713 ---- if (mtime == (time_t) -1) mtime = name_mtime (name + 4); if (mtime == (time_t) -1) ! mtime = name_mtime (name + 9); if (mtime == (time_t) -1) { ! char *newname = name + 9; if (vpath_search (&newname)) { mtime = name_mtime (newname); Steven ...!ucbvax!grady grady@postgres.berkeley.edu "There should be a psychology of feet. For do we not make decisions with our legs, and walk about on our brains? What do you mean, `No, not really,'?" -from "The Notebooks of Mauve'Bib--Outtakes, Bloopers, and Unconvincing Maxims," Edited by the Princess Serutan.