]> granicus.if.org Git - libnl/commitdiff
build: resolve lex failure
authorJan Engelhardt <jengelh@inai.de>
Mon, 26 Nov 2012 23:01:53 +0000 (00:01 +0100)
committerThomas Graf <tgraf@suug.ch>
Tue, 27 Nov 2012 08:57:42 +0000 (09:57 +0100)
This is an addendum to 0a9d5fcfa4c3fe8c930103f7639723dfd1ae4889,
which forgot to change ${LEX} to ${FLEX} in lib/Makefile.am.

On openSUSE, /usr/bin/lex is a wrapper that calls `flex -l ...`.
libnl however requires flex, not lex or a compat mode thereof,
so using ${FLEX} is the proper thing to do.

Signed-off-by: Jan Engelhardt <jengelh@inai.de>
lib/Makefile.am

index 748194123717f559426bce99f7ea2a8815bde06e..5adaffbbfbeaec44a0d6ce58097e91e1ba7603c4 100644 (file)
@@ -41,13 +41,13 @@ CLEANFILES = \
 # Hack to avoid using ylwrap. It does not function correctly in combination
 # with --header-file=
 route/pktloc_grammar.c: route/pktloc_grammar.l
-       $(AM_V_GEN) $(LEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
+       $(AM_V_GEN) $(FLEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
 
 route/pktloc_syntax.c: route/pktloc_syntax.y
        $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^
 
 route/cls/ematch_grammar.c: route/cls/ematch_grammar.l
-       $(AM_V_GEN) $(LEX) --header-file=route/cls/ematch_grammar.h $(LFLAGS) -o $@ $^
+       $(AM_V_GEN) $(FLEX) --header-file=route/cls/ematch_grammar.h $(LFLAGS) -o $@ $^
 
 route/cls/ematch_syntax.c: route/cls/ematch_syntax.y
        $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^