aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Yourtchenko <ayourtch@gmail.com>2024-03-13 12:16:11 +0100
committerAndrew Yourtchenko <ayourtch@gmail.com>2024-03-13 13:39:22 +0100
commite574736322733ec5a126ca01efb958570e5355eb (patch)
treed51a239118039d8730bbe119005dac66731935c0 /src
parente45fac02fde777bbf81f4b22a62c150148457d28 (diff)
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 <ayourtch@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/vpp/app/vppctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vpp/app/vppctl.c b/src/vpp/app/vppctl.c
index 7c9651784e6..f1d69c3ca84 100644
--- a/src/vpp/app/vppctl.c
+++ b/src/vpp/app/vppctl.c
@@ -34,7 +34,9 @@
#include <vppinfra/clib.h>
#include <arpa/telnet.h>
+#ifndef STATIC_VPPCTL
#include <vpp/vnet/config.h>
+#endif
#define SOCKET_FILE "/run/vpp/cli.sock"
@@ -162,7 +164,7 @@ process_input (int sock_fd, unsigned char *rx_buf, int rx_buf_len,
return j;
}
-#ifdef CLIB_SANITIZE_ADDR
+#if !defined(STATIC_VPPCTL) && defined(CLIB_SANITIZE_ADDR)
/* default options for Address Sanitizer */
const char *
__asan_default_options (void)