audit: bump version to 2.7
[buildroot-gz.git] / package / libxmlrpc / 0002-fix-non-cplusplus-build.patch
blob2d5bfcc0a0b09c7db4430448bae7dad48231b6f4
1 Handle builds without C++
3 libxmlrpc nicely handles the fact of being built without C++ support,
4 except for two locations, fixed by this patch.
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
9 Index: b/lib/util/Makefile
10 ===================================================================
11 --- a/lib/util/Makefile
12 +++ b/lib/util/Makefile
13 @@ -41,11 +41,14 @@
14 LIBOBJS = \
15 casprintf.o \
16 cmdline_parser.o \
17 - cmdline_parser_cpp.o \
18 getoptx.o \
19 string_parser.o \
20 stripcaseeq.o \
22 +ifeq ($(ENABLE_CPLUSPLUS),yes)
23 +LIBOBJS += cmdline_parser_cpp.o
24 +endif
26 .PHONY: all
27 all: $(LIBOBJS)
29 Index: b/lib/Makefile
30 ===================================================================
31 --- a/lib/Makefile
32 +++ b/lib/Makefile
33 @@ -9,7 +9,10 @@
35 # Build up SUBDIRS:
36 SUBDIRS =
37 -SUBDIRS += util libutil libutil++
38 +SUBDIRS += util libutil
39 +ifeq ($(ENABLE_CPLUSPLUS),yes)
40 + SUBDIRS += libutil++
41 +endif
42 ifeq ($(ENABLE_ABYSS_SERVER),yes)
43 SUBDIRS += abyss
44 ifeq ($(ENABLE_CPLUSPLUS),yes)