mirror of
https://github.com/yggdrasil-network/yggstack.git
synced 2025-04-27 21:55:07 +03:00
Declare *bsd builds are static and drop CGO_ENABLED for ststic build
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
parent
95a41a3e8f
commit
fef083ae4a
2 changed files with 71 additions and 71 deletions
4
build
4
build
|
@ -9,7 +9,7 @@ PKGVER=${PKGVER:-$(sh contrib/semver/version.sh --bare)}
|
|||
LDFLAGS="-X $PKGSRC.buildName=$PKGNAME -X $PKGSRC.buildVersion=$PKGVER"
|
||||
ARGS="-v"
|
||||
|
||||
while getopts "utc:l:dro:p" option
|
||||
while getopts "utc:l:dro:ps" option
|
||||
do
|
||||
case "$option"
|
||||
in
|
||||
|
@ -21,7 +21,7 @@ do
|
|||
r) ARGS="$ARGS -race";;
|
||||
o) ARGS="$ARGS -o $OPTARG";;
|
||||
p) ARGS="$ARGS -buildmode=pie";;
|
||||
s) ARGS="$ARGS -tags netgo,osusersgo,static" LDFLAGS="$LDFLAGS -extldflags '-static'";;
|
||||
s) ARGS="$ARGS -tags netgo,osusersgo,static" LDFLAGS="$LDFLAGS -extldflags '-static'" CGO_ENABLED=0;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue