Module: check_mk
Branch: master
Commit: 0d4e7947c5a96dd504b360051deac5c88a123b3d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0d4e7947c5a96d…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Wed Mar 1 09:13:32 2017 +0100
Statically link C++ filesystem library into our NEB.
Change-Id: If138b12108ac91fa62fe03fb2850fb6b21d46a71
---
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 df66bd9..4c77b44 100644
--- a/livestatus/src/Makefile.am
+++ b/livestatus/src/Makefile.am
@@ -162,9 +162,10 @@ livestatus_so_CPPFLAGS = -I.. @BOOST_CPPFLAGS@
livestatus_so_CXXFLAGS = -fPIC
livestatus_so_CFLAGS = -fPIC
+# Note: libstdc++fs is only available as a static library, so we are lucky
livestatus.o: $(livestatus_so_OBJECTS) $(livestatus_so_DEPENDENCIES)
-rm -f plugin.so
- $(CXX) $(LDFLAGS) -s -fPIC -shared $(livestatus_so_OBJECTS) -o $@ -lpthread
-static-libstdc++ @BOOST_LDFLAGS@
+ $(CXX) $(LDFLAGS) -s -fPIC -shared $(livestatus_so_OBJECTS) -o $@ -lstdc++fs -lpthread
-static-libstdc++ @BOOST_LDFLAGS@
all-local: livestatus.o