From b4d08f9273fd6ec6c13bc1e1377fb5315d6c2c85 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 30 Jul 2019 00:03:17 +0100 Subject: [PATCH] Try to be more POSIX-compliant --- build | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build b/build index 046296e..80a971f 100755 --- a/build +++ b/build @@ -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