Skip to content

Commit

Permalink
Fixes build on Alpine Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
specious committed Nov 14, 2021
1 parent 5959e2f commit f09591e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion src/backward.h
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@
# endif
# endif

# if BACKWARD_HAS_BACKTRACE_SYMBOL == 1
# include <dlfcn.h>
# endif

# if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1)
// then we shall rely on backtrace
# include <execinfo.h>
Expand All @@ -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.
//
Expand Down

0 comments on commit f09591e

Please sign in to comment.