Description: Link cppcheck and cppcheck-gui with the system tinyxml
Author: Joachim Reichel <reichel@debian.org>

Index: cppcheck-1.89/Makefile
===================================================================
--- cppcheck-1.89.orig/Makefile
+++ cppcheck-1.89/Makefile
@@ -82,9 +82,6 @@ endif
 ifeq (clang++, $(findstring clang++,$(CXX)))
     CPPCHK_GLIBCXX_DEBUG=
 endif
-ifndef CXXFLAGS
-    CXXFLAGS=-std=c++0x -O2 -DNDEBUG -Wall -Wno-sign-compare
-endif
 
 # Increase stack size for Cygwin builds to avoid segmentation fault in limited recursive tests.
 ifdef COMSPEC
@@ -95,15 +92,7 @@ ifdef COMSPEC
     endif # CYGWIN
 endif # COMSPEC
 
-ifeq (g++, $(findstring g++,$(CXX)))
-    override CXXFLAGS += -std=c++0x
-else ifeq (clang++, $(findstring clang++,$(CXX)))
-    override CXXFLAGS += -std=c++0x
-else ifeq ($(CXX), c++)
-    ifeq ($(shell uname -s), Darwin)
-        override CXXFLAGS += -std=c++0x
-    endif
-endif
+override CXXFLAGS += -std=c++0x -DNDEBUG -Wall -Wno-sign-compare
 
 ifeq ($(HAVE_RULES),yes)
     override CXXFLAGS += -DHAVE_RULES -DTIXML_USE_STL $(shell pcre-config --cflags)
