aboutsummaryrefslogtreecommitdiffstats
path: root/extras/scripts/build_static_vppctl.sh
blob: eafd24c37485064d48d7a0e35e850a2035de160a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#/bin/env bash
set -eu

src=$(realpath $(dirname $0)/../..)/src

${CC:-cc} \
 -Wall \
 -Werror \
 -O2 \
 -flto \
 -static \
 -D STATIC_VPPCTL \
 -I ${src} \
 -g \
 ${src}/vpp/app/vppctl.c \
 -o vppctl