Skip to content

Commit

Permalink
Fix issue: bulk counter feature is disabled (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
liorghub authored and StormLiangMS committed Mar 7, 2023
1 parent 8b1583b commit cf9a66b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ AC_MSG_ERROR("SAI headers API version and library version mismatch")])])
CXXFLAGS="$SAVED_FLAGS"
])])

AM_COND_IF([SYNCD], [
SAVED_FLAGS="$CXXFLAGS"
CXXFLAGS="-Xlinker --no-as-needed -lsai -I$srcdir/SAI/inc -I$srcdir/SAI/experimental -I$srcdir/SAI/meta"
AC_CHECK_FUNCS(sai_bulk_object_clear_stats sai_bulk_object_get_stats)
CXXFLAGS="$SAVED_FLAGS"
])

AC_OUTPUT(Makefile
meta/Makefile
Expand Down
1 change: 1 addition & 0 deletions syncd/VendorSai.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "config.h"
#include "VendorSai.h"

#include "meta/sai_serialize.h"
Expand Down

0 comments on commit cf9a66b

Please sign in to comment.