Skip to content

Commit 72b215c

Browse files
cejkato2SiskaPavel
authored andcommitted
build: add dependency on liblz4 due to IPFIX compression feature
1 parent 5ba318c commit 72b215c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ AC_DEFINE_DIR([DEFAULTSOCKETDIR], [defaultsocketdir], [Default path to socket di
8383

8484
AC_CHECK_LIB(atomic, __atomic_store, [libatomic=yes], AC_MSG_ERROR([libatomic not found]))
8585

86+
PKG_CHECK_MODULES([LIBLZ4], [liblz4])
87+
CFLAGS="$LIBLZ4_CFLAGS $CFLAGS"
88+
CXXFLAGS="$LIBLZ4_CFLAGS $CXXFLAGS"
89+
LIBS="$LIBLZ4_LIBS $LIBS"
90+
8691
### gtest
8792
AC_ARG_WITH([gtest],
8893
AC_HELP_STRING([--with-gtest],[Compile ipfixprobe with gtest framework]),

ipfixprobe.spec.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Vendor: CESNET, z.s.p.o.
5757
Packager: @USERNAME@ <@USERMAIL@>
5858
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
5959
Summary: IPFIX flow exporter with various extending IPFIX elements exported by plugins.
60-
Requires: libatomic fuse3 telemetry
61-
BuildRequires: gcc gcc-c++ make doxygen pkgconfig libatomic telemetry
60+
Requires: libatomic fuse3 telemetry lz4
61+
BuildRequires: gcc gcc-c++ make doxygen pkgconfig libatomic telemetry lz4-devel
6262
Provides: ipfixprobe
6363

6464
%if %{with ndp}

0 commit comments

Comments
 (0)