mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
libnl: fix parallel make
lex/yacc generated header file should be explicitly listed for makefile dependency also add flex-native and bison-native for the recipe Signed-off-by: Qing He <qing.he@intel.com>
This commit is contained in:
@@ -0,0 +1,22 @@
|
|||||||
|
12/03/2010
|
||||||
|
|
||||||
|
add explicit rules for header files generated by lex and yacc,
|
||||||
|
otherwise the build of lib/route/pktloc.c may fail in a parallel
|
||||||
|
environment.
|
||||||
|
|
||||||
|
Signed-off-by: Qing He <qing.he@intel.com>
|
||||||
|
diff --git a/lib/Makefile.am b/lib/Makefile.am
|
||||||
|
index 92a916e..e8b8ef3 100644
|
||||||
|
--- a/lib/Makefile.am
|
||||||
|
+++ b/lib/Makefile.am
|
||||||
|
@@ -35,6 +35,10 @@ route/pktloc_grammar.c: route/pktloc_grammar.l
|
||||||
|
route/pktloc_syntax.c: route/pktloc_syntax.y
|
||||||
|
$(YACC) -d $(YFLAGS) -o $@ $^
|
||||||
|
|
||||||
|
+route/pktloc.$(OBJEXT): route/pktloc_syntax.h route/pktloc_grammar.h
|
||||||
|
+route/pktloc_syntax.h: route/pktloc_syntax.c
|
||||||
|
+route/pktloc_grammar.h: route/pktloc_grammar.c
|
||||||
|
+
|
||||||
|
libnl_route_la_LDFLAGS = -version-info 2:0:0
|
||||||
|
libnl_route_la_LIBADD = libnl.la
|
||||||
|
libnl_route_la_SOURCES = \
|
||||||
@@ -6,9 +6,12 @@ PRIORITY = "optional"
|
|||||||
LICENSE = "LGPLv2.1"
|
LICENSE = "LGPLv2.1"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2b41e13261a330ee784153ecbb6a82bc"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=2b41e13261a330ee784153ecbb6a82bc"
|
||||||
|
|
||||||
PR = "r0"
|
DEPENDS = "flex-native bison-native"
|
||||||
|
PR = "r1"
|
||||||
|
|
||||||
SRC_URI= "http://www.infradead.org/~tgr/libnl/files/${PN}-${PV}.tar.gz"
|
SRC_URI= "http://www.infradead.org/~tgr/libnl/files/${PN}-${PV}.tar.gz \
|
||||||
|
file://fix-makefile.patch \
|
||||||
|
"
|
||||||
|
|
||||||
inherit autotools pkgconfig
|
inherit autotools pkgconfig
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user