Package: cppcheck / 1.86-1

fix-cxxflags Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: Link cppcheck and cppcheck-gui with the system tinyxml
Author: Joachim Reichel <reichel@debian.org>

Index: cppcheck-1.84/Makefile
===================================================================
--- cppcheck-1.84.orig/Makefile
+++ cppcheck-1.84/Makefile
@@ -79,19 +79,7 @@ endif
 ifeq (clang++, $(findstring clang++,$(CXX)))
     CPPCHK_GLIBCXX_DEBUG=
 endif
-ifndef CXXFLAGS
-    CXXFLAGS=-std=c++0x -O2 -DNDEBUG -Wall -Wno-sign-compare
-endif
-
-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)