libxmlrpc-0002-fix-non-cplusplus-build.patch 619 B

123456789101112131415161718192021222324252627
  1. Handle builds without C++
  2. libxmlrpc nicely handles the fact of being built without C++ support,
  3. except for one location, fixed by this patch.
  4. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  5. Index: b/lib/util/Makefile
  6. ===================================================================
  7. --- a/lib/util/Makefile
  8. +++ b/lib/util/Makefile
  9. @@ -41,11 +41,14 @@
  10. LIBOBJS = \
  11. casprintf.o \
  12. cmdline_parser.o \
  13. - cmdline_parser_cpp.o \
  14. getoptx.o \
  15. string_parser.o \
  16. stripcaseeq.o \
  17. +ifeq ($(ENABLE_CPLUSPLUS),yes)
  18. +LIBOBJS += cmdline_parser_cpp.o
  19. +endif
  20. +
  21. .PHONY: all
  22. all: $(LIBOBJS)