0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-07 23:05:41 +00:00
netdata_netdata/packaging/makeself/install-alpine-packages.sh
Costa Tsaousis e90f3f4e22
enable libunwind in static builds ()
* enable libunwind in static builds

* add libunwind and backtrace to buildinfo

* add linunwind to alpine packages

* add -dev packages

* add remove libunwind binary from the packages

* Vendor libunwind in static builds instead of using a copy from the build environment.

This is required to ensure that the C++ exception handling functionality
in libunwind is _disabled_, because it does not play nice with static
linking when using C++ with exception handling support enabled.

* Remove changes from local testing.

* Fix cross architecture builds.

* Disable libunwind on 64-bit POWER builds.

musl libc does not include functions that are required to build
libunwind for this platform, so just disable it there for now.

---------

Co-authored-by: Austin S. Hemmelgarn <austin@netdata.cloud>
2025-03-06 12:39:10 +02:00

47 lines
728 B
Bash
Executable file

#!/usr/bin/env sh
# Copyright: SPDX-License-Identifier: GPL-3.0-or-later
#
# Installation script for the alpine host
# to prepare the static binary
apk update || exit 1
apk upgrade || exit 1
# Add required APK packages
apk add --no-cache -U \
alpine-sdk \
autoconf \
automake \
bash \
binutils \
cmake \
curl \
elfutils-dev \
gcc \
git \
gnutls-dev \
gzip \
jq \
libelf-static \
libmnl-dev \
libnetfilter_acct-dev \
libtool \
libuv-dev \
libuv-static \
lz4-dev \
lz4-static \
make \
ncurses \
ncurses-dev \
netcat-openbsd \
openssh \
pkgconfig \
protobuf-dev \
snappy-dev \
snappy-static \
util-linux-dev \
wget \
xz \
zlib-dev \
zlib-static \
|| exit 1