From 582d618b69077087961c367bd1631495906c92a8 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Sat, 24 Dec 2005 17:53:26 +0000 Subject: [PATCH] Avoid non-portable use of $< outside an inference rule. --- ChangeLog | 7 +++++++ config/Makefile.in | 2 +- sbr/Makefile.in | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f81e98e..4bfa786 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2005-12-24 Peter Maydell + * Bug #15285: Don't use $< in target rules in makefiles, as POSIX + says it's only defined in inference rules. (BSD make was expanding + $< to the empty string in the rule for building sbr/dtimep.c, which + causes lex to apparently hang because it's reading from stdin.) + +2005-12-24 Peter Maydell + * Completely redo db library checking -- we now check for working (include file, library) pairs rather than checking for headers and libraries separately. We also now provide --with-ndbm=lib and diff --git a/config/Makefile.in b/config/Makefile.in index 482bca2..6ca8308 100644 --- a/config/Makefile.in +++ b/config/Makefile.in @@ -58,7 +58,7 @@ version.c: ${srcdir}/version.sh $(VERSION) > version.c config.o: config.c - $(COMPILE2) $< + $(COMPILE2) config.c install: diff --git a/sbr/Makefile.in b/sbr/Makefile.in index 142c721..08845c3 100644 --- a/sbr/Makefile.in +++ b/sbr/Makefile.in @@ -102,13 +102,13 @@ lint: sigmsg.h # Note that some lexes (for example flex 2.5.4) require that there # be no space between -o and the output filename. dtimep.c: dtimep.lex - $(LEX) -o$@ $< + $(LEX) -o$@ dtimep.lex client.o: client.c - $(COMPILE2) $< + $(COMPILE2) client.c mts.o: mts.c - $(COMPILE2) $< + $(COMPILE2) mts.c pidstatus.o: sigmsg.h -- 1.7.10.4