blob: 0404ea0fab730ff816ee6d3d6fcfaa81862102a5 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From f46d096015d7402a37a59eb66b8f6b7fbf0cdff0 Mon Sep 17 00:00:00 2001
2From: Kai Kang <kai.kang@windriver.com>
3Date: Wed, 24 May 2017 17:38:53 +0800
4Subject: [PATCH] snort: enable static daq
5
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006Upstream-Status: Inappropriate [embedded specific]
7
8When enable static daq for snort, it calls to daq-modules-config to get link
9library and library path. Library path is useless for oe and cause host
10contamination issue. So filter it.
11
12Signed-off-by: Kai Kang <kai.kang@windriver.com>
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
Brad Bishopd7bf8c12018-02-25 22:55:05 -050014---
Brad Bishop316dfdd2018-06-25 12:45:53 -040015 configure.in | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018diff --git a/configure.in b/configure.in
19index fded45b..a247bb9 100644
20--- a/configure.in
21+++ b/configure.in
22@@ -658,7 +658,7 @@ fi
23
24 if test "x$enable_static_daq" = "xyes"; then
25 LDAQ=""
26- LIBS="${LIBS} `daq-modules-config --static --libs`"
27+ LIBS="${LIBS} `daq-modules-config --static --libs | sed 's#-L[^ ]*##g'`"
28 AC_CHECK_LIB([daq_static], [daq_load_modules],
29 [LIBS="-ldaq_static ${LIBS}"], [LDAQ="no"], [ ])
30