summaryrefslogtreecommitdiff
path: root/.github/scripts/build-hamlib-windows.sh
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /.github/scripts/build-hamlib-windows.sh
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to '.github/scripts/build-hamlib-windows.sh')
-rwxr-xr-x.github/scripts/build-hamlib-windows.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/scripts/build-hamlib-windows.sh b/.github/scripts/build-hamlib-windows.sh
new file mode 100755
index 00000000..a4240998
--- /dev/null
+++ b/.github/scripts/build-hamlib-windows.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+set -euo pipefail
+
+if [ "$#" -ne 2 ]; then
+ echo "Usage: build-hamlib-windows.sh BRANCH PREFIX" >&2
+ exit 2
+fi
+
+branch="$1"
+prefix="$2"
+
+git clone --depth 1 --branch "$branch" \
+ https://github.com/Hamlib/Hamlib.git hamlib-src
+cd hamlib-src
+./bootstrap
+./configure \
+ --prefix="$prefix" \
+ --enable-shared --disable-static \
+ --without-cxx-binding \
+ --without-readline \
+ CFLAGS="-DNDEBUG -g -O2 -fdata-sections -ffunction-sections" \
+ LDFLAGS="-Wl,--gc-sections"
+make -j"$(nproc)"
+make install-strip