diff --git a/build b/build index a787965f..046296eb 100755 --- a/build +++ b/build @@ -26,7 +26,9 @@ do done if [ -z $TABLES ]; then - LDFLAGS="$LDFLAGS -s -w" + if [ "$ARGS" == "${ARGS/-tags debug/}" ]; then + LDFLAGS="$LDFLAGS -s -w" + fi fi if [ $IOS ]; then