efeb9cc83f5a51d381d13352bb263a154017f6c4
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libxmlrpc / 0002-fix-non-cplusplus-build.patch
1 Handle builds without C++
2
3 libxmlrpc nicely handles the fact of being built without C++ support,
4 except for one location, fixed by this patch.
5
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7
8 Index: b/lib/util/Makefile
9 ===================================================================
10 --- a/lib/util/Makefile
11 +++ b/lib/util/Makefile
12 @@ -41,11 +41,14 @@
13  LIBOBJS = \
14    casprintf.o \
15    cmdline_parser.o \
16 -  cmdline_parser_cpp.o \
17    getoptx.o \
18    string_parser.o \
19    stripcaseeq.o \
20  
21 +ifeq ($(ENABLE_CPLUSPLUS),yes)
22 +LIBOBJS += cmdline_parser_cpp.o
23 +endif
24 +
25  .PHONY: all
26  all: $(LIBOBJS)
27