diff options
| author | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:55 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-06-22 12:03:55 +0200 |
| commit | de18fc13175a5bf0e2b48a042d2fc06e87c88d24 (patch) | |
| tree | f517074cd603d30eb7ba7e2122d38051e4c1439c /.github/scripts/build-boost-macos.sh | |
| parent | b76e8361909e47f0937d4a64a5a4cb5939f51eb7 (diff) | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
Update upstream source from tag 'upstream/3.0.2+dfsg'
Update to upstream version '3.0.2+dfsg'
with Debian dir 90381fe7be9f5ea84d9b16c9cccf200a3fbe138b
Diffstat (limited to '.github/scripts/build-boost-macos.sh')
| -rwxr-xr-x | .github/scripts/build-boost-macos.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/scripts/build-boost-macos.sh b/.github/scripts/build-boost-macos.sh new file mode 100755 index 00000000..06e9de1a --- /dev/null +++ b/.github/scripts/build-boost-macos.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +set -euo pipefail + +if [ "$#" -ne 4 ]; then + echo "Usage: build-boost-macos.sh VERSION ARCH DEPLOYMENT_TARGET PREFIX" >&2 + exit 2 +fi + +version="$1" +arch="$2" +deployment_target="$3" +prefix="$4" +version_underscores=${version//./_} +boost_arch=x86 + +if [ "$arch" = "arm64" ]; then + boost_arch=arm +fi + +curl -L --fail --retry 5 --retry-delay 10 -o boost.tar.bz2 "https://archives.boost.io/release/${version}/source/boost_${version_underscores}.tar.bz2" +tar -xjf boost.tar.bz2 +cd "boost_${version_underscores}" + +./bootstrap.sh --prefix="$prefix" --with-libraries=log +./b2 -j"$(sysctl -n hw.ncpu)" \ + toolset=clang \ + variant=release \ + link=shared \ + runtime-link=shared \ + threading=multi \ + cxxstd=11 \ + cflags="-mmacosx-version-min=${deployment_target}" \ + cxxflags="-mmacosx-version-min=${deployment_target}" \ + linkflags="-mmacosx-version-min=${deployment_target}" \ + architecture="$boost_arch" \ + address-model=64 \ + install |
