From e574736322733ec5a126ca01efb958570e5355eb Mon Sep 17 00:00:00 2001 From: Andrew Yourtchenko Date: Wed, 13 Mar 2024 12:16:11 +0100 Subject: misc: fix the static vppctl build Change I58e1ae1c91f4a62e80eaf4e16e9932d8bab17c74 has introduced a reference to config.h, which is not there in a case of building a static standalone vppctl. Solution: add a variable STATIC_VPPCTL which, when defined, avoids including the missing include file. Thanks a lot to Damjan for the suggestion. Type: fix Change-Id: I133235ba07e5c2e0d5669be9c2292cab0fdf436f Signed-off-by: Andrew Yourtchenko --- extras/scripts/build_static_vppctl.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'extras') diff --git a/extras/scripts/build_static_vppctl.sh b/extras/scripts/build_static_vppctl.sh index dd8a6014d88..eafd24c3748 100755 --- a/extras/scripts/build_static_vppctl.sh +++ b/extras/scripts/build_static_vppctl.sh @@ -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 \ -- cgit 1.2.3-korg