Skip to content

Fixes build on Alpine Linux #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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