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
|
||||
ARGS="-v"
|
||||
|
||||
while getopts "utc:l:dro:p" option
|
||||
while getopts "utc:l:dro:ps" option
|
||||
do
|
||||
case "$option"
|
||||
in
|
||||
|
@ -24,6 +24,8 @@ do
|
|||
r) ARGS="$ARGS -race";;
|
||||
o) ARGS="$ARGS -o $OPTARG";;
|
||||
p) ARGS="$ARGS -buildmode=pie";;
|
||||
# statically linked executable
|
||||
s) LDFLAGS="$LDFLAGS -linkmode external -extldflags=-static";;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue