Skip to content

Commit f09591e

Browse files
committed
Fixes build on Alpine Linux
Fixes awslabs#29 awslabs#124
1 parent 5959e2f commit f09591e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

examples/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
FROM alpine:latest
22

3-
RUN apk update && apk add cmake make git g++ bash curl-dev zlib-dev
3+
RUN apk add --no-cache cmake make g++ git bash curl-dev zlib-dev libexecinfo-dev

src/backward.h

+5-1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@
240240
# endif
241241
# endif
242242

243+
# if BACKWARD_HAS_BACKTRACE_SYMBOL == 1
244+
# include <dlfcn.h>
245+
# endif
246+
243247
# if (BACKWARD_HAS_BACKTRACE == 1) || (BACKWARD_HAS_BACKTRACE_SYMBOL == 1)
244248
// then we shall rely on backtrace
245249
# include <execinfo.h>
@@ -254,7 +258,7 @@
254258
// #define BACKWARD_HAS_UNWIND 1
255259
// - unwind comes from libgcc, but I saw an equivalent inside clang itself.
256260
// - with unwind, the stacktrace is as accurate as it can possibly be, since
257-
// this is used by the C++ runtine in gcc/clang for stack unwinding on
261+
// this is used by the C++ runtime in gcc/clang for stack unwinding on
258262
// exception.
259263
// - normally libgcc is already linked to your program by default.
260264
//

0 commit comments

Comments
 (0)