Module: check_mk
Branch: master
Commit: 738de4498c0e4227df927cfbee22426197d5ba17
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=738de4498c0e42…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Mar 21 11:26:35 2017 +0100
Do not strip the NEB.
This blows up livestatus.o from 2.8MB to 28MB, but the ability to get
detailed stack traces is extremely valuable. Note that this affects only
the size on disk, not in memory: The dynamic linker does not load the debug
info into the Nagios process.
Change-Id: Ie5bade334193b620bc921addd18435306d182a74
---
livestatus/src/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/livestatus/src/Makefile.am b/livestatus/src/Makefile.am
index 8f6ea8f..efdf542 100644
--- a/livestatus/src/Makefile.am
+++ b/livestatus/src/Makefile.am
@@ -163,7 +163,7 @@ liblivestatus_a_CXXFLAGS = -fPIC
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@
+ $(CXX) $(LDFLAGS) -shared $^ -o $@ -lstdc++fs -lpthread -static-libstdc++
@BOOST_LDFLAGS@
# To make sure we can dlopen() our NEB later
$(CXX) $(liblivestatus_a_CXXFLAGS) $(CXXFLAGS) -c NagiosMockup.cc -o NagiosMockup.o
$(CXX) $(liblivestatus_a_CXXFLAGS) $(CXXFLAGS) NagiosMockup.o $@ -o NagiosMockup