diff options
author | ru <ru@FreeBSD.org> | 2007-11-15 22:39:15 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2007-11-15 22:39:15 +0000 |
commit | 29de595612fccf2d40a55dbdebe3a68245cc798c (patch) | |
tree | ec1891742b5a8f4582990e7c448a5034ba644826 /lib/libc/net | |
parent | bca11bf48fe38cb4822925e995f9b1be648fcc2a (diff) | |
download | FreeBSD-src-29de595612fccf2d40a55dbdebe3a68245cc798c.zip FreeBSD-src-29de595612fccf2d40a55dbdebe3a68245cc798c.tar.gz |
Fix bad rule and bad dependency for nsparser.h that can
cause the build to fail because y.tab.c can have a more
recent modification time than y.tab.h, and the bad rule
relied on the opposite.
(The last write to y.tab.c by yacc(1) happens after the
last write to y.tab.h, according to truss(1).)
Reported by: kensmith
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/Makefile.inc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/net/Makefile.inc b/lib/libc/net/Makefile.inc index 9d96ad8..4eadf98 100644 --- a/lib/libc/net/Makefile.inc +++ b/lib/libc/net/Makefile.inc @@ -12,7 +12,7 @@ SRCS+= base64.c ether_addr.c eui64.c \ getproto.c getprotoent.c getprotoname.c getservent.c \ if_indextoname.c if_nameindex.c if_nametoindex.c \ ip6opt.c linkaddr.c map_v4v6.c name6.c ntoh.c \ - nsdispatch.c nslexer.c nsparser.c nss_compat.c \ + nsdispatch.c nslexer.c nsparser.y nss_compat.c \ rcmd.c rcmdsh.c recv.c rthdr.c sctp_sys_calls.c send.c \ sockatmark.c sourcefilter.c vars.c @@ -34,12 +34,9 @@ CFLAGS+=-I${.CURDIR}/resolv YFLAGS+=-p_nsyy LFLAGS+=-P_nsyy -CLEANFILES+=nsparser.c nslexer.c nsparser.h +CLEANFILES+=nslexer.c -nsparser.h: nsparser.c - mv y.tab.h ${.TARGET} - -nslexer.c: nslexer.l nsparser.h +nslexer.c: nslexer.l ${LEX} ${LFLAGS} -o/dev/stdout ${.IMPSRC} | \ sed -e '/YY_BUF_SIZE/s/16384/1024/' >${.TARGET} |