Module: check_mk
Branch: master
Commit: 73e96fd803b42ee43719c9b5a1ab45bad4ffce3f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=73e96fd803b42e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 6 14:19:08 2016 +0100
mkevent: Fixed build with g++-6 installed
---
bin/Makefile | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/Makefile b/bin/Makefile
index 9debf8f..318d0f5 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -23,7 +23,12 @@
# Boston, MA 02110-1301 USA.
# TODO(sp) We should really use autotools here...
-CXX := g++-5
+ifneq ($(shell which g++-6 2>/dev/null),)
+ CXX := g++-6
+else
+ CXX := g++-5
+endif
+
CXXFLAGS := -std=c++14 -g -O3 -Wall -Wextra
LDFLAGS := -static-libstdc++
EXECUTABLES := mkevent mkeventd_open514