summaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/build.sh b/build.sh
index 87701dd0..7d8e2406 100755
--- a/build.sh
+++ b/build.sh
@@ -9,6 +9,7 @@
: "${CMAKE:=no}"
: "${CRYPTO:=no}"
: "${SMB:=no}"
+: "${TCPDUMP_TAINTED:=no}"
. ./build_common.sh
# Install directory prefix
@@ -53,11 +54,7 @@ run_after_echo make -s clean
# these cases, please remember to raise the bar here so if the warnings appear
# again, it will trigger an error.
# shellcheck disable=SC2006
-case `uname -s` in
- *)
- CFLAGS=`cc_werr_cflags`
- ;;
-esac
+[ "$TCPDUMP_TAINTED" != yes ] && CFLAGS=`cc_werr_cflags`
run_after_echo make -s ${CFLAGS:+CFLAGS="$CFLAGS"}
run_after_echo make install
print_so_deps "$TCPDUMP_BIN"