summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libnl/libnl/fix-build-using-flex.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libnl/libnl/fix-build-using-flex.patch')
-rw-r--r--meta/recipes-support/libnl/libnl/fix-build-using-flex.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/recipes-support/libnl/libnl/fix-build-using-flex.patch b/meta/recipes-support/libnl/libnl/fix-build-using-flex.patch
new file mode 100644
index 0000000000..89a36bafbd
--- /dev/null
+++ b/meta/recipes-support/libnl/libnl/fix-build-using-flex.patch
@@ -0,0 +1,55 @@
1From 89ab8d4f1229a1d2605193686cc00e6b2c9786ff Mon Sep 17 00:00:00 2001
2From: Otavio Salvador <otavio@ossystems.com.br>
3Date: Mon, 7 Jan 2013 15:44:38 -0200
4Subject: [PATCH] Fix build using flex
5
6Upstream-Status: Backport [3.2.17]
7---
8 lib/Makefile.am | 4 ++--
9 src/lib/Makefile.am | 4 ++--
10 2 files changed, 4 insertions(+), 4 deletions(-)
11
12diff --git a/lib/Makefile.am b/lib/Makefile.am
13index 98c7b90..89cc5d2 100644
14--- a/lib/Makefile.am
15+++ b/lib/Makefile.am
16@@ -43,14 +43,14 @@ CLEANFILES = \
17 route/pktloc.lo: route/pktloc_syntax.h route/pktloc_grammar.h
18 route/pktloc_grammar.h: route/pktloc_grammar.c
19 route/pktloc_grammar.c: route/pktloc_grammar.l
20- $(AM_V_GEN) $(LEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
21+ $(AM_V_GEN) $(FLEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
22
23 route/pktloc_syntax.h: route/pktloc_syntax.c
24 route/pktloc_syntax.c: route/pktloc_syntax.y
25 $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^
26
27 route/cls/ematch_grammar.c: route/cls/ematch_grammar.l
28- $(AM_V_GEN) $(LEX) --header-file=route/cls/ematch_grammar.h $(LFLAGS) -o $@ $^
29+ $(AM_V_GEN) $(FLEX) --header-file=route/cls/ematch_grammar.h $(LFLAGS) -o $@ $^
30
31 route/cls/ematch_syntax.c: route/cls/ematch_syntax.y
32 $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^
33diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
34index 6688e7c..507635d 100644
35--- a/src/lib/Makefile.am
36+++ b/src/lib/Makefile.am
37@@ -11,13 +11,13 @@ AM_LDFLAGS = \
38 #cls_ematch_cmp_la_LDFLAGS = -module -version-info 2:0:0
39
40 #cls/ematch_grammar.c: cls/ematch_grammar.l
41-# $(LEX) --header-file=cls/ematch_grammar.h $(LFLAGS) -o $@ $^
42+# $(FLEX) --header-file=cls/ematch_grammar.h $(LFLAGS) -o $@ $^
43
44 #cls/ematch_syntax.c: cls/ematch_syntax.y
45 # $(YACC) -d $(YFLAGS) -o $@ $^
46
47 #cls/pktloc_grammar.c: cls/pktloc_grammar.l
48-# $(LEX) --header-file=cls/pktloc_grammar.h $(LFLAGS) -o $@ $^
49+# $(FLEX) --header-file=cls/pktloc_grammar.h $(LFLAGS) -o $@ $^
50
51 #cls/pktloc_syntax.c: cls/pktloc_syntax.y
52 # $(YACC) -d $(YFLAGS) -o $@ $^
53--
541.7.10.4
55