blob: a4240998b0029ba44621ab82355b813f5b41b751 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|