diff options
author | Michał Polański <michal@polanski.me> | 2020-07-24 02:54:17 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-11-06 09:00:26 +0000 |
commit | 5599e3d81afd12f7120e4921b368f98be273f6fa (patch) | |
tree | aea0aee08e213c17116ff148cc5e421daa0e172e | |
parent | e639541bfcde0088803ea64bca920f6f11cb1886 (diff) | |
download | aports-5599e3d81afd12f7120e4921b368f98be273f6fa.tar.gz aports-5599e3d81afd12f7120e4921b368f98be273f6fa.tar.bz2 aports-5599e3d81afd12f7120e4921b368f98be273f6fa.tar.xz |
community/caddy: build with CGO_ENABLED=0
This makes caddy a static binary (without libc dependency)
-rw-r--r-- | community/caddy/APKBUILD | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/community/caddy/APKBUILD b/community/caddy/APKBUILD index a7a8988449..d842b78858 100644 --- a/community/caddy/APKBUILD +++ b/community/caddy/APKBUILD @@ -2,10 +2,11 @@ # Maintainer: Michał Polański <michal@polanski.me> pkgname=caddy pkgver=2.2.1 -pkgrel=0 +pkgrel=1 pkgdesc="Fast, multi-platform web server with automatic HTTPS" url="https://caddyserver.com/" arch="all !mips !mips64" # limited by go +arch="$arch !s390x" # Doesn't compile fully static caddy license="Apache-2.0" depends="ca-certificates" makedepends="go libcap" @@ -19,6 +20,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/caddyserver/caddy/archive/v$ Caddyfile" export GOPATH="$srcdir" +export CGO_ENABLED=0 build() { go build -trimpath -ldflags="-s -w" -v -o bin/caddy ./cmd/caddy |