Compare commits

...

28 Commits

Author SHA1 Message Date
9c5dd4db9a
curl 8.11.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2024-11-07 21:26:39 -05:00
06c6b69b6a
curl 8.10.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2024-10-09 00:30:44 -04:00
94cc8aa442
curl 8.7.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2024-03-27 23:10:56 -04:00
66625fb6f7 Disable libpsl for now
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2024-03-27 03:02:39 -04:00
64d5511d1c curl 8.6.0
Some checks failed
moparisthebest/static-curl/pipeline/head There was a failure building this commit
2024-03-26 19:14:44 -04:00
577ac478eb
curl 8.5.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-12-12 21:34:26 -05:00
a86e6437e7 curl 8.4.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-10-11 10:34:11 -04:00
9eaa52035a curl 8.3.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-09-26 00:30:45 -04:00
c63121a242 curl 8.2.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-08-19 01:19:18 -04:00
2ff097f26e curl 8.1.2
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-07-07 00:54:19 -04:00
78abf9e15c curl 8.0.1 - Happy 25th Birthday!
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-03-20 09:58:14 -04:00
16d6464e9e curl 7.88.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2023-02-20 11:36:23 -05:00
aa2336a78d curl 7.87.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-12-21 11:33:13 -05:00
d17a1d8e4d curl 7.86.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-10-26 09:13:33 -04:00
787ce283a4 curl 7.85.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-09-08 22:55:51 -04:00
71dab8c01f curl 7.84.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-07-14 01:38:53 -04:00
a9177ae6f1 curl 7.83.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-05-11 08:16:13 -04:00
9e3047c979 curl 7.83.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-04-29 08:21:39 -04:00
382793c189 curl 7.82.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-03-05 11:28:09 -05:00
7f0eec176f curl 7.81.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2022-01-09 20:56:28 -05:00
137c4531dc curl 7.80.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-11-11 09:56:21 -05:00
041bde24ee curl 7.79.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-09-22 07:42:36 -04:00
4071d60345 curl 7.79.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-09-15 07:59:20 -04:00
2c435f392d Change URLs to reference latest release
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
Closes #1
2021-07-21 21:44:07 -04:00
0ab82474d4 Fix static building for 7.78.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-07-21 07:33:35 -04:00
c86910a3e2 curl 7.78.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-07-21 07:33:35 -04:00
52b7d68f77 curl 7.77.0
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-05-26 08:15:53 -04:00
060bcb6791 curl 7.76.1
All checks were successful
moparisthebest/static-curl/pipeline/head This commit looks good
2021-04-14 02:14:34 -04:00
2 changed files with 20 additions and 12 deletions

View File

@ -4,12 +4,13 @@
These are a couple simple scripts to build a fully static curl binary using alpine linux docker containers. Currently it is a featureful build with OpenSSL, libssh2, nghttp2, and zlib, supporting most protocols. Tweak configure options in [build.sh](build.sh#L50) if you need something else (and/or suggest or PR). These are a couple simple scripts to build a fully static curl binary using alpine linux docker containers. Currently it is a featureful build with OpenSSL, libssh2, nghttp2, and zlib, supporting most protocols. Tweak configure options in [build.sh](build.sh#L50) if you need something else (and/or suggest or PR).
Grab the latest release (curl 7.76.0) from one of these links, by CPU architecture: Grab the [latest release](https://github.com/moparisthebest/static-curl/releases/latest) from one of these links, by CPU architecture:
- [curl-amd64](https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-amd64) - [curl-amd64](https://github.com/moparisthebest/static-curl/releases/latest/download/curl-amd64)
- [curl-i386](https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-i386) - [curl-i386](https://github.com/moparisthebest/static-curl/releases/latest/download/curl-i386)
- [curl-aarch64](https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-aarch64) - [curl-aarch64](https://github.com/moparisthebest/static-curl/releases/latest/download/curl-aarch64)
- [curl-armv7](https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-armv7) - [curl-armv7](https://github.com/moparisthebest/static-curl/releases/latest/download/curl-armv7)
- [curl-ppc64le](https://github.com/moparisthebest/static-curl/releases/download/v7.76.0/curl-ppc64le) - [curl-armhf](https://github.com/moparisthebest/static-curl/releases/latest/download/curl-armhf)
- [curl-ppc64le](https://github.com/moparisthebest/static-curl/releases/latest/download/curl-ppc64le)
Static binaries for windows are provided directly by [curl](https://curl.haxx.se/windows/) itself. Static binaries for windows are provided directly by [curl](https://curl.haxx.se/windows/) itself.

View File

@ -5,7 +5,7 @@
# docker run --rm -v $(pwd):/tmp -w /tmp -e ARCH=aarch64 multiarch/alpine:aarch64-latest-stable /tmp/build.sh # docker run --rm -v $(pwd):/tmp -w /tmp -e ARCH=aarch64 multiarch/alpine:aarch64-latest-stable /tmp/build.sh
# docker run --rm -v $(pwd):/tmp -w /tmp -e ARCH=ARCH_HERE ALPINE_IMAGE_HERE /tmp/build.sh # docker run --rm -v $(pwd):/tmp -w /tmp -e ARCH=ARCH_HERE ALPINE_IMAGE_HERE /tmp/build.sh
CURL_VERSION='7.76.0' CURL_VERSION='8.11.0'
[ "$1" != "" ] && CURL_VERSION="$1" [ "$1" != "" ] && CURL_VERSION="$1"
@ -32,7 +32,7 @@ tar xzf curl-${CURL_VERSION}.tar.gz
cd curl-${CURL_VERSION}/ cd curl-${CURL_VERSION}/
# dependencies to build curl # dependencies to build curl
apk add build-base clang openssl-dev nghttp2-dev nghttp2-static libssh2-dev libssh2-static apk add build-base clang openssl-dev nghttp2-dev nghttp2-static libssh2-dev libssh2-static perl
# these are missing on at least armhf # these are missing on at least armhf
apk add openssl-libs-static zlib-static || true apk add openssl-libs-static zlib-static || true
@ -40,12 +40,18 @@ apk add openssl-libs-static zlib-static || true
# gcc is apparantly incapable of building a static binary, even gcc -static helloworld.c ends up linked to libc, instead of solving, use clang # gcc is apparantly incapable of building a static binary, even gcc -static helloworld.c ends up linked to libc, instead of solving, use clang
export CC=clang export CC=clang
# apply patches if needed
#patch -p1 < ../static.patch
#apk add autoconf automake libtool
#autoreconf -fi
# end apply patches
# set up any required curl options here # set up any required curl options here
#LDFLAGS="-static" PKG_CONFIG="pkg-config --static" ./configure --disable-shared --enable-static --disable-libcurl-option --without-brotli --disable-manual --disable-unix-sockets --disable-dict --disable-file --disable-gopher --disable-imap --disable-smtp --disable-rtsp --disable-telnet --disable-tftp --disable-pop3 --without-zlib --disable-threaded-resolver --disable-ipv6 --disable-smb --disable-ntlm-wb --disable-tls-srp --disable-crypto-auth --with-ssl #LDFLAGS="-static" PKG_CONFIG="pkg-config --static" ./configure --disable-shared --enable-static --disable-libcurl-option --without-brotli --disable-manual --disable-unix-sockets --disable-dict --disable-file --disable-gopher --disable-imap --disable-smtp --disable-rtsp --disable-telnet --disable-tftp --disable-pop3 --without-zlib --disable-threaded-resolver --disable-ipv6 --disable-smb --disable-ntlm-wb --disable-tls-srp --disable-crypto-auth --without-ngtcp2 --without-nghttp2 --disable-ftp --disable-mqtt --disable-alt-svc --without-ssl
LDFLAGS="-static" PKG_CONFIG="pkg-config --static" ./configure --disable-shared --enable-static --disable-ldap --enable-ipv6 --enable-unix-sockets --with-ssl --with-libssh2 LDFLAGS="-static" PKG_CONFIG="pkg-config --static" ./configure --disable-shared --enable-static --disable-ldap --enable-ipv6 --enable-unix-sockets --with-ssl --with-libssh2 --disable-docs --disable-manual --without-libpsl
make -j4 V=1 curl_LDFLAGS=-all-static make -j4 V=1 LDFLAGS="-static -all-static"
# binary is ~13M before stripping, 2.6M after # binary is ~13M before stripping, 2.6M after
strip src/curl strip src/curl
@ -53,7 +59,8 @@ strip src/curl
# print out some info about this, size, and to ensure it's actually fully static # print out some info about this, size, and to ensure it's actually fully static
ls -lah src/curl ls -lah src/curl
file src/curl file src/curl
ldd src/curl || true # exit with error code 1 if the executable is dynamic, not static
ldd src/curl && exit 1 || true
./src/curl -V ./src/curl -V