Commit 0ca26160 authored by Leo's avatar Leo
Browse files

community/go-bindata-assetfs: fix build on mips/mips64

parent 5225c0e6
......@@ -14,7 +14,12 @@ options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/elazarl/go-bindata-assetfs/archive/v$pkgver.tar.gz"
build() {
export GOFLAGS="$GOFLAGS -buildmode=pie -trimpath -mod=readonly -modcacherw"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
case $CARCH in
mips*)
export GOFLAGS="${GOFLAGS/-buildmode=pie}" # Not supported on mips(64)
;;
esac
export GOPATH="$srcdir"
go build -ldflags="-s -w" -v -o bin/"$pkgname" ./"$pkgname"/main.go
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment