diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD index 1b89b2c..6d0bd54 100644 --- a/build/archlinux/PKGBUILD +++ b/build/archlinux/PKGBUILD @@ -16,7 +16,11 @@ md5sums=('SKIP') build() { cd "$srcdir/$pkgname" export GOPATH="$srcdir"/gopath - make VERSION=$pkgver DESTDIR="$pkgdir/" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + make VERSION=$pkgver DESTDIR="$pkgdir/" PREFIX="/usr" } package() {