From f09591e1d36883ba98125d1aaab0b6aefc9536ca Mon Sep 17 00:00:00 2001 From: Ildar Sagdejev Date: Sun, 14 Nov 2021 14:17:20 -0500 Subject: [PATCH] Fixes build on Alpine Linux Fixes #29 #124 --- examples/Dockerfile | 2 +- src/backward.h | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/Dockerfile b/examples/Dockerfile index aabb4dd..c7af1ec 100644 --- a/examples/Dockerfile +++ b/examples/Dockerfile @@ -1,3 +1,3 @@ FROM alpine:latest -RUN apk update && apk add cmake make git g++ bash curl-dev zlib-dev +RUN apk add --no-cache cmake make g++ git bash curl-dev zlib-dev libexecinfo-dev diff --git a/src/backward.h b/src/backward.h index e9e56c7..5128410 100644 --- a/src/backward.h +++ b/src/backward.h @@ -240,6 +240,10 @@ # endif # endif +# if BACKWARD_HAS_BACKTRACE_SYMBOL == 1 +# include +# endif + # if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1) // then we shall rely on backtrace # include @@ -254,7 +258,7 @@ // #define BACKWARD_HAS_UNWIND 1 // - unwind comes from libgcc, but I saw an equivalent inside clang itself. // - with unwind, the stacktrace is as accurate as it can possibly be, since -// this is used by the C++ runtine in gcc/clang for stack unwinding on +// this is used by the C++ runtime in gcc/clang for stack unwinding on // exception. // - normally libgcc is already linked to your program by default. //