Skip to content

Commit 5de86bc

Browse files
committed
glibcxx
1 parent 439fba5 commit 5de86bc

2 files changed

Lines changed: 1 addition & 50 deletions

File tree

Makefile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ ifdef FILESDIR
4444
endif
4545

4646
RDYNAMIC=-rdynamic
47-
# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.
48-
# The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems.
4947
ifndef COMSPEC
5048
ifeq ($(VERBOSE),1)
5149
$(info COMSPEC not found)
@@ -75,9 +73,6 @@ ifdef WINNT
7573
$(info WINNT found)
7674
endif
7775
#### Maybe Windows
78-
ifndef CPPCHK_GLIBCXX_DEBUG
79-
CPPCHK_GLIBCXX_DEBUG=
80-
endif # !CPPCHK_GLIBCXX_DEBUG
8176

8277
ifeq ($(VERBOSE),1)
8378
$(info MSYSTEM=$(MSYSTEM))
@@ -99,18 +94,6 @@ else # !WINNT
9994
$(info uname_S=$(uname_S))
10095
endif
10196

102-
ifeq ($(uname_S),Linux)
103-
ifndef CPPCHK_GLIBCXX_DEBUG
104-
CPPCHK_GLIBCXX_DEBUG=-D_GLIBCXX_DEBUG
105-
endif # !CPPCHK_GLIBCXX_DEBUG
106-
endif # Linux
107-
108-
ifeq ($(uname_S),GNU/kFreeBSD)
109-
ifndef CPPCHK_GLIBCXX_DEBUG
110-
CPPCHK_GLIBCXX_DEBUG=-D_GLIBCXX_DEBUG
111-
endif # !CPPCHK_GLIBCXX_DEBUG
112-
endif # GNU/kFreeBSD
113-
11497
LDFLAGS+=-pthread
11598

11699
endif # WINNT
@@ -124,13 +107,6 @@ ifdef CYGWIN
124107
CXXFLAGS+=-Wl,--stack,8388608
125108
endif # CYGWIN
126109

127-
ifndef CXX
128-
CXX=g++
129-
endif
130-
131-
ifeq (clang++, $(findstring clang++,$(CXX)))
132-
CPPCHK_GLIBCXX_DEBUG=
133-
endif
134110
ifndef CXXFLAGS
135111
CXXFLAGS=-pedantic -Wall -Wextra -Wcast-qual -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-sign-compare -Wno-multichar -Woverloaded-virtual -g
136112
endif

tools/dmake/dmake.cpp

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,7 @@ int main(int argc, char **argv)
623623
// enable backtrac
624624
fout << "RDYNAMIC=-rdynamic\n";
625625

626-
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.
627-
fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"
628-
<< "# The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems.\n"
629-
<< "ifndef COMSPEC\n"
626+
fout << "ifndef COMSPEC\n"
630627
<< " ifeq ($(VERBOSE),1)\n"
631628
<< " $(info COMSPEC not found)\n"
632629
<< " endif\n"
@@ -655,9 +652,6 @@ int main(int argc, char **argv)
655652
<< " $(info WINNT found)\n"
656653
<< " endif\n"
657654
<< " #### Maybe Windows\n"
658-
<< " ifndef CPPCHK_GLIBCXX_DEBUG\n"
659-
<< " CPPCHK_GLIBCXX_DEBUG=\n"
660-
<< " endif # !CPPCHK_GLIBCXX_DEBUG\n"
661655
<< "\n"
662656
<< " ifeq ($(VERBOSE),1)\n"
663657
<< " $(info MSYSTEM=$(MSYSTEM))\n"
@@ -679,18 +673,6 @@ int main(int argc, char **argv)
679673
<< " $(info uname_S=$(uname_S))\n"
680674
<< " endif\n"
681675
<< "\n"
682-
<< " ifeq ($(uname_S),Linux)\n"
683-
<< " ifndef CPPCHK_GLIBCXX_DEBUG\n"
684-
<< " CPPCHK_GLIBCXX_DEBUG=-D_GLIBCXX_DEBUG\n"
685-
<< " endif # !CPPCHK_GLIBCXX_DEBUG\n"
686-
<< " endif # Linux\n"
687-
<< "\n"
688-
<< " ifeq ($(uname_S),GNU/kFreeBSD)\n"
689-
<< " ifndef CPPCHK_GLIBCXX_DEBUG\n"
690-
<< " CPPCHK_GLIBCXX_DEBUG=-D_GLIBCXX_DEBUG\n"
691-
<< " endif # !CPPCHK_GLIBCXX_DEBUG\n"
692-
<< " endif # GNU/kFreeBSD\n"
693-
<< "\n"
694676
<< " LDFLAGS+=-pthread\n"
695677
<< "\n"
696678
<< "endif # WINNT\n"
@@ -706,12 +688,6 @@ int main(int argc, char **argv)
706688
<< "endif # CYGWIN\n"
707689
<< "\n";
708690

709-
// skip "-D_GLIBCXX_DEBUG" if clang, since it breaks the build
710-
makeConditionalVariable(fout, "CXX", "g++");
711-
fout << "ifeq (clang++, $(findstring clang++,$(CXX)))\n"
712-
<< " CPPCHK_GLIBCXX_DEBUG=\n"
713-
<< "endif\n";
714-
715691
// Makefile settings..
716692
if (release) {
717693
makeConditionalVariable(fout, "CXXFLAGS", "-O2 -Wall -Wno-sign-compare -Wno-multichar");
@@ -733,7 +709,6 @@ int main(int argc, char **argv)
733709
"-Wno-multichar "
734710
"-Woverloaded-virtual "
735711
"-g");
736-
//fout << "override CPPFLAGS += $(CPPCHK_GLIBCXX_DEBUG)\n\n"; // TODO: when using CXXOPTS this would always be set - need to handle this differently
737712
}
738713

739714
fout << "ifeq (g++, $(findstring g++,$(CXX)))\n"

0 commit comments

Comments
 (0)