summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-networking/recipes-connectivity/snort/snort/fix-host-contamination-when-enable-static-daq.patch
blob: 0404ea0fab730ff816ee6d3d6fcfaa81862102a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From f46d096015d7402a37a59eb66b8f6b7fbf0cdff0 Mon Sep 17 00:00:00 2001
From: Kai Kang <kai.kang@windriver.com>
Date: Wed, 24 May 2017 17:38:53 +0800
Subject: [PATCH] snort: enable static daq

Upstream-Status: Inappropriate [embedded specific]

When enable static daq for snort, it calls to daq-modules-config to get link
library and library path. Library path is useless for oe and cause host
contamination issue. So filter it.

Signed-off-by: Kai Kang <kai.kang@windriver.com>

---
 configure.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.in b/configure.in
index fded45b..a247bb9 100644
--- a/configure.in
+++ b/configure.in
@@ -658,7 +658,7 @@ fi
 
 if test "x$enable_static_daq" = "xyes"; then
     LDAQ=""
-    LIBS="${LIBS} `daq-modules-config --static --libs`"
+    LIBS="${LIBS} `daq-modules-config --static --libs | sed 's#-L[^ ]*##g'`"
     AC_CHECK_LIB([daq_static], [daq_load_modules],
         [LIBS="-ldaq_static ${LIBS}"], [LDAQ="no"], [ ])
 
OpenPOWER on IntegriCloud