8cdd9329f58af2ebcd6aa763eb0af1095cc127b8
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libxmlrpc / 0001-fix-gennmtab-build.patch
1 Fix build of host tool
2
3 genmtab is a tool that needs to be built for the host as it is used
4 during the compilation process of libxmlrpc. Its Makefile needs a bit
5 of tuning to use the conventional CC_FOR_BUILD, CFLAGS_FOR_BUILD and
6 LDFLAGS_FOR_BUILD variables.
7
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9
10 Index: b/lib/expat/gennmtab/Makefile
11 ===================================================================
12 --- a/lib/expat/gennmtab/Makefile
13 +++ b/lib/expat/gennmtab/Makefile
14 @@ -40,9 +40,9 @@
15  dep: dep-common
16  
17  gennmtab.o:%.o:%.c
18 -       $(BUILDTOOL_CC) -c $< -o $@ $(CFLAGS_ALL) $(INCLUDES)
19 +       $(CC_FOR_BUILD) -c $< -o $@ $(CFLAGS_FOR_BUILD) $(INCLUDES)
20  
21  gennmtab:%:%.o
22 -       $(BUILDTOOL_CCLD) -o $@ $(LDFLAGS) $^
23 +       $(CC_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $^
24  
25  include depend.mk