Module: check_mk
Branch: master
Commit: a6e73e669b772e3e5d83209dd71234a39316b8d5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a6e73e669b772e…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Mar 1 17:11:27 2017 +0100
Do the dlopen() check in two steps, this fixes the compilation database.
Change-Id: Idda6aa9a57e71e99b8b04d4cafe60d26d5b91eab
---
livestatus/src/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/livestatus/src/Makefile.am b/livestatus/src/Makefile.am
index 2a835dd..461f3d0 100644
--- a/livestatus/src/Makefile.am
+++ b/livestatus/src/Makefile.am
@@ -165,7 +165,8 @@ livestatus.o: $(liblivestatus_a_OBJECTS)
# Note: libstdc++fs is only available as a static library, so we are lucky
$(CXX) $(LDFLAGS) -s -shared $^ -o $@ -lstdc++fs -lpthread -static-libstdc++
@BOOST_LDFLAGS@
# To make sure we can dlopen() our NEB later
- $(CXX) $(liblivestatus_a_CXXFLAGS) $(CXXFLAGS) NagiosMockup.cc $@ -o NagiosMockup
+ $(CXX) $(liblivestatus_a_CXXFLAGS) $(CXXFLAGS) -c NagiosMockup.cc -o NagiosMockup.o
+ $(CXX) $(liblivestatus_a_CXXFLAGS) $(CXXFLAGS) NagiosMockup.o $@ -o NagiosMockup
$(RM) NagiosMockup
all-local: livestatus.o