912f9511de
Fix the following build failure raised since bump to version 3.1.6 in commite66f2fd310
and3e518d8604
: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/powerpc-buildroot-linux-uclibc/9.3.0/../../../../powerpc-buildroot-linux-uclibc/bin/ld: service_inspectors/dce_rpc/CMakeFiles/dce_rpc.dir/dce_smb2_file.cc.o: undefined reference to symbol '__atomic_load_8@@LIBATOMIC_1.0' Fixes: - http://autobuild.buildroot.org/results/df34a69175e61bc7b180d89c738747e19aaf13bf Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# snort3
|
|
#
|
|
################################################################################
|
|
|
|
SNORT3_VERSION = 3.1.6.0
|
|
SNORT3_SITE = $(call github,snort3,snort3,$(SNORT3_VERSION))
|
|
SNORT3_LICENSE = GPL-2.0
|
|
SNORT3_LICENSE_FILES = COPYING LICENSE
|
|
|
|
SNORT3_DEPENDENCIES = \
|
|
host-pkgconf daq3 flex hwloc libdnet libpcap luajit openssl pcre zlib
|
|
|
|
SNORT3_CONF_OPTS = \
|
|
-DENABLE_GDB=OFF \
|
|
-DENABLE_STATIC_DAQ=OFF \
|
|
-DMAKE_DOC=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_FLATBUFFERS),y)
|
|
SNORT3_DEPENDENCIES += flatbuffers
|
|
SNORT3_CONF_OPTS += -DHAVE_FLATBUFFERS=ON
|
|
else
|
|
SNORT3_CONF_OPTS += -DHAVE_FLATBUFFERS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
SNORT3_DEPENDENCIES += libiconv
|
|
SNORT3_CONF_OPTS += -DHAVE_ICONV=ON
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
|
SNORT3_DEPENDENCIES += libtirpc
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SAFECLIB),y)
|
|
SNORT3_DEPENDENCIES += safeclib
|
|
SNORT3_CONF_OPTS += -DENABLE_SAFEC=ON
|
|
else
|
|
SNORT3_CONF_OPTS += -DENABLE_SAFEC=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
|
SNORT3_DEPENDENCIES += util-linux
|
|
SNORT3_CONF_OPTS += -DHAVE_UUID=ON
|
|
else
|
|
SNORT3_CONF_OPTS += -DHAVE_UUID=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
SNORT3_DEPENDENCIES += xz
|
|
SNORT3_CONF_OPTS += -DHAVE_LZMA=ON
|
|
else
|
|
SNORT3_CONF_OPTS += -DHAVE_LZMA=OFF
|
|
endif
|
|
|
|
# Uses __atomic_load_8
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
SNORT3_CONF_OPTS += -DCMAKE_EXE_LINKER_FLAGS=-latomic
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|