From 724f1f573e57fae1545754107fc5665c8355c6fc Mon Sep 17 00:00:00 2001 From: Jessica Hamilton Date: Tue, 21 Oct 2014 11:33:21 +0000 Subject: [PATCH] tcpdump/libpcap: correctly declare dependency between lex/yacc * Previously, debugging jam, it would output a warning along the lines of 'warning: using independent target ... grammar.c'. To fix the dependency, it needs to be declared from object file to the generated source file. * With the correct dependency (scanner.o on grammar.c), this warning is eliminated, and the dependency graph shown is now correct * This should address #4091 --- src/bin/network/tcpdump/libpcap/Jamfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/network/tcpdump/libpcap/Jamfile b/src/bin/network/tcpdump/libpcap/Jamfile index 36e87f1cd1..d5e681934b 100644 --- a/src/bin/network/tcpdump/libpcap/Jamfile +++ b/src/bin/network/tcpdump/libpcap/Jamfile @@ -27,5 +27,6 @@ StaticLibrary libpcap.a : version.c ; -# scanner.l includes the generated grammar.h -Includes [ FGristFiles scanner.l ] : [ FGristFiles grammar.h ] ; +# scanner.l includes the generated grammar.h, but we need to +# declare the dependency from .o to .c +Depends [ FGristFiles scanner.o ] : [ FGristFiles grammar.c ] ;