mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 15:40:01 +00:00
snort: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
@@ -5,6 +5,7 @@ LICENSE = "GPL-2.0"
|
|||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=78fa8ef966b48fbf9095e13cc92377c5"
|
||||||
|
|
||||||
DEPENDS = "xz libpcap libpcre daq libdnet util-linux"
|
DEPENDS = "xz libpcap libpcre daq libdnet util-linux"
|
||||||
|
DEPENDS_append_libc-musl = " libtirpc"
|
||||||
|
|
||||||
SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
|
SRC_URI = " ${GENTOO_MIRROR}/${BP}.tar.gz;name=tarball \
|
||||||
file://snort.init \
|
file://snort.init \
|
||||||
@@ -46,6 +47,9 @@ PACKAGECONFIG ?= "openssl lzma"
|
|||||||
PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl,"
|
PACKAGECONFIG[openssl] = "--with-openssl-includes=${STAGING_INCDIR} --with-openssl-libraries=${STAGING_LIBDIR}, --without-openssl-includes --without-openssl-libraries, openssl,"
|
||||||
PACKAGECONFIG[lzma] = "--with-lzma-includes=${STAGING_INCDIR} --with-lzma-libraries=${STAGING_LIBDIR}, --without-lzma-includes --without-lzma-libraries, xz,"
|
PACKAGECONFIG[lzma] = "--with-lzma-includes=${STAGING_INCDIR} --with-lzma-libraries=${STAGING_LIBDIR}, --without-lzma-includes --without-lzma-libraries, xz,"
|
||||||
|
|
||||||
|
CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc"
|
||||||
|
LDFLAGS_append_libc-musl = " -ltirpc"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}${sysconfdir}/snort/rules
|
install -d ${D}${sysconfdir}/snort/rules
|
||||||
install -d ${D}${sysconfdir}/snort/preproc_rules
|
install -d ${D}${sysconfdir}/snort/preproc_rules
|
||||||
|
|||||||
Reference in New Issue
Block a user