mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 13:00:47 +00:00
Try to be more POSIX-compliant
This commit is contained in:
parent
cafa20074c
commit
b4d08f9273
8
build
8
build
@ -19,16 +19,14 @@ do
|
|||||||
t) TABLES=true;;
|
t) TABLES=true;;
|
||||||
c) GCFLAGS="$GCFLAGS $OPTARG";;
|
c) GCFLAGS="$GCFLAGS $OPTARG";;
|
||||||
l) LDFLAGS="$LDFLAGS $OPTARG";;
|
l) LDFLAGS="$LDFLAGS $OPTARG";;
|
||||||
d) ARGS="$ARGS -tags debug";;
|
d) ARGS="$ARGS -tags debug" DEBUG=true;;
|
||||||
r) ARGS="$ARGS -race";;
|
r) ARGS="$ARGS -race";;
|
||||||
o) ARGS="$ARGS -o $OPTARG";;
|
o) ARGS="$ARGS -o $OPTARG";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ -z $TABLES ]; then
|
if [ -z $TABLES ] && [ -z $DEBUG ]; then
|
||||||
if [ "$ARGS" == "${ARGS/-tags debug/}" ]; then
|
LDFLAGS="$LDFLAGS -s -w"
|
||||||
LDFLAGS="$LDFLAGS -s -w"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $IOS ]; then
|
if [ $IOS ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user