[build] some more stacktrace stuff

This commit is contained in:
Timothy Stack 2021-05-24 20:39:38 -07:00
parent 8f03a441d3
commit db5fd8e0ec
3 changed files with 8 additions and 12 deletions

View File

@ -46,11 +46,11 @@ if test x"${OS}" != x"FreeBSD"; then
TARGET_FILE='/vagrant/lnav-musl.zip'
../lnav/configure \
--with-libarchive=${FAKE_ROOT} \
CFLAGS='-static -no-pie -s -O2' \
CXXFLAGS='-static -U__unused -no-pie -s -O2' \
LDFLAGS="-L${FAKE_ROOT}/lib" \
CPPFLAGS="-I${FAKE_ROOT}/include" \
LIBS="-L${FAKE_ROOT}/lib -lssh2 -llzma -lssl -lcrypto -lz" \
CFLAGS='-static -g1 -no-pie -s -O2' \
CXXFLAGS='-static -g1 -U__unused -no-pie -s -O2' \
LDFLAGS="-L${FAKE_ROOT}/lib -Wl,-allow-multiple-definition" \
CPPFLAGS="-I${FAKE_ROOT}/include -DBACKWARD_HAS_UNWIND=0 -DBACKWARD_HAS_LIBUNWIND=1 -DBACKWARD_HAS_DW=1" \
LIBS="-L${FAKE_ROOT}/lib -ldw -lelf -lunwind -lexecinfo -lssh2 -llzma -lssl -lcrypto -lz" \
--enable-static
PATH="${FAKE_ROOT}/bin:${PATH}"
else

View File

@ -13,11 +13,11 @@ sudo apk add \
automake \
elfutils \
elfutils-dev \
libdwarf \
libdwarf-dev \
libdwarf-static \
libelf-static \
libexecinfo-dev \
libexecinfo-static \
libtool \
libunwind \
libunwind-dev \
libunwind-static \
linux-headers

View File

@ -1019,11 +1019,7 @@ public:
unw_cursor_t cursor;
if (context()) {
#if defined(UNW_INIT_SIGNAL_FRAME)
result = unw_init_local2(&cursor, &ctx, UNW_INIT_SIGNAL_FRAME);
#else
result = unw_init_local(&cursor, &ctx);
#endif
} else {
unw_getcontext(&ctx);
;