Merge pull request #705 from simartin/restore_osx_default_build

Restore build on OSX, where make defines CXX as "c++" by default.
This commit is contained in:
Matthias Krüger 2015-11-14 10:29:33 +01:00
commit 82dd644b52
2 changed files with 8 additions and 0 deletions

View File

@ -87,6 +87,10 @@ ifeq ($(CXX), g++)
override CXXFLAGS += -std=c++0x
else ifeq ($(CXX), clang++)
override CXXFLAGS += -std=c++0x
else ifeq ($(CXX), c++)
ifeq ($(shell uname -s), Darwin)
override CXXFLAGS += -std=c++0x
endif
endif
ifeq ($(HAVE_RULES),yes)

View File

@ -359,6 +359,10 @@ int main(int argc, char **argv)
<< " override CXXFLAGS += -std=c++0x\n"
<< "else ifeq ($(CXX), clang++)\n"
<< " override CXXFLAGS += -std=c++0x\n"
<< "else ifeq ($(CXX), c++)\n"
<< " ifeq ($(shell uname -s), Darwin)\n"
<< " override CXXFLAGS += -std=c++0x\n"
<< " endif\n"
<< "endif\n"
<< "\n";