From 09db78f36396d62810bb1c4529e84ec5a1998549 Mon Sep 17 00:00:00 2001 From: Chris Sommers Date: Sun, 7 Aug 2022 13:59:52 -0700 Subject: [PATCH] Added details about additional options for saithrift generation. This is follow-up work from https://github.com/opencomputeproject/SAI/pull/1533. Signed-off-by: Chris Sommers --- ptf/SAI_PTF_user-guide.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ptf/SAI_PTF_user-guide.md b/ptf/SAI_PTF_user-guide.md index 8381cd79b4..da0e6b28a0 100644 --- a/ptf/SAI_PTF_user-guide.md +++ b/ptf/SAI_PTF_user-guide.md @@ -81,6 +81,29 @@ Build SAI thrift server and libraries ```bash export SAITHRIFTV2=y +export GEN_SAIRPC_OPTS="-ve" # optional - to use SAI experimental headers +# Below is an extended example of linking additional application-specific libraries besides libsai. +# Modify to suit a particular use-case. Omit if not needed. +export SAIRPC_EXTRA_LIBS="\ + -L/lib/x86_64-linux-gnu -Wl,-rpath=/lib/x86_64-linux-gnu -lm \ + -L/usr/local/lib/ -Wl,-rpath=/usr/local/lib \ + -lpthread \ + -lpiprotogrpc \ + -lpiprotobuf \ + -lprotobuf \ + -lgrpc++ \ + -lgrpc \ + -lpiall \ + -lpi_dummy \ + -lpthread \ + -labsl_synchronization \ + -labsl_status \ + -labsl_raw_hash_set \ + -lgpr \ + -lre2 \ + -lssl \ + -laddress_sorting" + make saithrift-build make saithrift-install ```