Skip to content

Commit

Permalink
Fix static linking of unwind crates
Browse files Browse the repository at this point in the history
  • Loading branch information
Bownairo committed Aug 15, 2024
1 parent b8f5ab5 commit 993e029
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 11 additions & 0 deletions gitlab-ci/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ RUN mkdir libtinfo && \
cd .. && \
rm -rf libtinfo

# Build libunwind from source. The packaged version breaks linking
RUN apt -yqq install libtool && \
git clone --branch v1.8.1 --depth 1 "https://github.com/libunwind/libunwind" && \
cd libunwind && \
autoreconf -i && \
./configure --libdir=/lib/x86_64-linux-gnu --includedir=/usr/include/x86_64-linux-gnu --disable-tests && \
make && \
make install && \
cd .. && \
rm -rf libunwind

ARG sdk_version=0.12.0
ARG sdk_sha=40da56ad27774d5e1b2cbc35f94c17368be8c8da557aca19878940264bd82a0a
RUN mkdir -p /tmp/sdk && curl -fsSL https://github.com/dfinity/sdk/releases/download/${sdk_version}/dfx-${sdk_version}-x86_64-linux.tar.gz -o /tmp/sdk/dfx.tar.gz && \
Expand Down
1 change: 0 additions & 1 deletion gitlab-ci/container/files/packages.common
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ gcc
lld
pkg-config
libssl-dev
libunwind-dev
libusb-1.0-0-dev
libsqlite3-dev
zlib1g-dev
Expand Down

0 comments on commit 993e029

Please sign in to comment.