mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
statically linked executable
This commit is contained in:
parent
0831f38c6f
commit
0a46b9de7f
1 changed files with 3 additions and 1 deletions
4
build
4
build
|
@ -12,7 +12,7 @@ else
|
||||||
fi
|
fi
|
||||||
ARGS="-v"
|
ARGS="-v"
|
||||||
|
|
||||||
while getopts "utc:l:dro:p" option
|
while getopts "utc:l:dro:ps" option
|
||||||
do
|
do
|
||||||
case "$option"
|
case "$option"
|
||||||
in
|
in
|
||||||
|
@ -24,6 +24,8 @@ do
|
||||||
r) ARGS="$ARGS -race";;
|
r) ARGS="$ARGS -race";;
|
||||||
o) ARGS="$ARGS -o $OPTARG";;
|
o) ARGS="$ARGS -o $OPTARG";;
|
||||||
p) ARGS="$ARGS -buildmode=pie";;
|
p) ARGS="$ARGS -buildmode=pie";;
|
||||||
|
# statically linked executable
|
||||||
|
s) LDFLAGS="$LDFLAGS -linkmode external -extldflags=-static";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue