kore/misc/kore-build/build-curl.sh
Joris Vink 8f743213aa Add my helper build scripts for building custom binaries.
Allows building Kore with several different component versions.

Eg:
	$ ./build-kore.sh 1.1.1h 3.9.0 7.72.0 1.41.0

	Will build Kore with OpenSSL 1.1.1h, Python 3.9.0, Curl 7.72.0
	and nghttp2 (for curl) 1.41.0
2020-10-08 13:53:48 +02:00

20 lines
371 B
Bash
Executable File

#!/bin/sh
set -e
. ./env.sh
if [ $# -ne 3 ]; then
echo "Usage: build-curl.sh [release] [openssl] [nghttp2]"
exit 1
fi
export PKG_CONFIG="pkg-config --static"
export PKG_CONFIG_PATH="$FAKEROOT/openssl-$2/lib/pkgconfig:$FAKEROOT/nghttp2-$3/lib/pkgconfig"
NAME=curl-$1
fetch "https://curl.haxx.se/download/$NAME.tar.gz" $NAME
default_build $NAME --enable-shared=no