From 4d6e9d190d0add7fe0831fcd5cb8d29e68d2c8a4 Mon Sep 17 00:00:00 2001 From: Tomas Pecka <peckato1@fit.cvut.cz> Date: Thu, 18 May 2017 16:59:10 +0200 Subject: [PATCH] Fix libxml2 makefile check for CXX=clang --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 79f2a3bc0a..460ecbeedc 100644 --- a/makefile +++ b/makefile @@ -75,7 +75,7 @@ ifneq (0, $(CPPUNIT_EXISTS)) $(error You need cppunit installed) endif -LIBXML2_EXISTS = $(shell $(CXX) -o /dev/null -I/usr/include/libxml2/ -lxml2 -xc++ - <<< $$'\#include <libxml/xmlreader.h>\nint main() {\nreturn 0;\n}'; echo $$?) +LIBXML2_EXISTS = $(shell $(CXX) -o /dev/null -I/usr/include/libxml2/ -lxml2 -xc++ -std=c++11 - <<< $$'\#include <libxml/xmlreader.h>\nint main() {\nreturn 0;\n}'; echo $$?) ifneq (0, $(LIBXML2_EXISTS)) $(error You need libxml2 installed) endif -- GitLab