Skip to content

Commit 2d49e3c

Browse files
committed
Fix aarch64 build on Alpine
1 parent fcde485 commit 2d49e3c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

pkg/apk/APKBUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ build() {
4141
git clone https://github.com/microsoft/vcpkg.git
4242
mv vcpkg $ROOT_DIR/
4343
export VCPKG_FORCE_SYSTEM_BINARIES=1
44+
# On aarch64 musl, vcpkg has no prebuilt binary and builds from source.
45+
# The default bootstrap downloads old curl 7.29.0 headers that lack
46+
# target-independent curlbuild.h, failing on aarch64. Use system curl instead.
47+
sed -i 's/-DCMAKE_BUILD_TYPE=Release/-DVCPKG_LIBCURL_DLSYM=OFF -DCMAKE_BUILD_TYPE=Release/' \
48+
$ROOT_DIR/vcpkg/scripts/bootstrap.sh
4449
set +e
4550
cmake -B build -DINTEGRATE_VCPKG=ON -DCMAKE_BUILD_TYPE=Release \
4651
-DCMAKE_MAKE_PROGRAM=make \

pkg/apk/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN apk add \
2828
abuild \
2929
bash \
3030
curl \
31+
curl-dev \
3132
g++ \
3233
make \
3334
cmake \

0 commit comments

Comments
 (0)