[Buildroot] [PATCH 1/1] libxmlrpc: fix build without C++ compiler

Alvaro G. M alvaro.gamez at hazent.com
Sun Dec 4 15:55:40 UTC 2016


From: Alvaro Gamez Machado <alvaro.gamez at hazent.com>

Conditionally deactivate compilation of optional C++ module.

Fixes:
http://autobuild.buildroot.net/results/cbf/cbff6c816606a515467d467677763533a41fc276/
Signed-off-by: Alvaro Gamez Machado <alvaro.gamez at hazent.com>
---
 package/libxmlrpc/0002-fix-non-cplusplus-build.patch | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

diff --git a/package/libxmlrpc/0002-fix-non-cplusplus-build.patch b/package/libxmlrpc/0002-fix-non-cplusplus-build.patch
index efeb9cc..2d5bfcc 100644
--- a/package/libxmlrpc/0002-fix-non-cplusplus-build.patch
+++ b/package/libxmlrpc/0002-fix-non-cplusplus-build.patch
@@ -1,9 +1,10 @@
 Handle builds without C++
 
 libxmlrpc nicely handles the fact of being built without C++ support,
-except for one location, fixed by this patch.
+except for two locations, fixed by this patch.
 
 Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
+Signed-off-by: Alvaro Gamez Machado <alvaro.gamez at hazent.com>
 
 Index: b/lib/util/Makefile
 ===================================================================
@@ -25,3 +26,19 @@ Index: b/lib/util/Makefile
  .PHONY: all
  all: $(LIBOBJS)
  
+Index: b/lib/Makefile
+===================================================================
+--- a/lib/Makefile
++++ b/lib/Makefile
+@@ -9,7 +9,10 @@
+ 
+ # Build up SUBDIRS:
+ SUBDIRS = 
+-SUBDIRS += util libutil libutil++
++SUBDIRS += util libutil
++ifeq ($(ENABLE_CPLUSPLUS),yes)
++  SUBDIRS += libutil++
++endif
+ ifeq ($(ENABLE_ABYSS_SERVER),yes)
+   SUBDIRS += abyss
+   ifeq ($(ENABLE_CPLUSPLUS),yes)
-- 
2.7.0


More information about the buildroot mailing list