misc: fix the static vppctl build
[vpp.git] / extras / scripts / build_static_vppctl.sh
index dd8a601..eafd24c 100755 (executable)
@@ -1,4 +1,5 @@
 #/bin/env bash
+set -eu
 
 src=$(realpath $(dirname $0)/../..)/src
 
@@ -8,6 +9,7 @@ ${CC:-cc} \
  -O2 \
  -flto \
  -static \
+ -D STATIC_VPPCTL \
  -I ${src} \
  -g \
  ${src}/vpp/app/vppctl.c \