Skip to content

Commit

Permalink
tcpdump/libpcap: correctly declare dependency between lex/yacc
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jessicah committed Oct 21, 2014
1 parent 2ee31ee commit 724f1f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bin/network/tcpdump/libpcap/Jamfile
Expand Up @@ -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 ] ;

0 comments on commit 724f1f5

Please sign in to comment.