diff --git a/build b/build index e463c852..86ecfad7 100755 --- a/build +++ b/build @@ -5,6 +5,7 @@ PKGNAME=${PKGNAME:-$(sh contrib/semver/name.sh)} PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)} LDFLAGS="-X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER" +LDFLAGS="$LDFLAGS -extldflags '-static -no-pie'" while getopts "udtc:l:" option do