5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-23 00:35:39 +00:00

Try to be more POSIX-compliant

This commit is contained in:
Neil Alexander 2019-07-30 00:03:17 +01:00
parent cafa20074c
commit b4d08f9273
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

8
build
View File

@ -19,16 +19,14 @@ do
t) TABLES=true;;
c) GCFLAGS="$GCFLAGS $OPTARG";;
l) LDFLAGS="$LDFLAGS $OPTARG";;
d) ARGS="$ARGS -tags debug";;
d) ARGS="$ARGS -tags debug" DEBUG=true;;
r) ARGS="$ARGS -race";;
o) ARGS="$ARGS -o $OPTARG";;
esac
done
if [ -z $TABLES ]; then
if [ "$ARGS" == "${ARGS/-tags debug/}" ]; then
LDFLAGS="$LDFLAGS -s -w"
fi
if [ -z $TABLES ] && [ -z $DEBUG ]; then
LDFLAGS="$LDFLAGS -s -w"
fi
if [ $IOS ]; then