blob: 2becc0624431e36c33fe9926866634a00eddb6bc [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001Upstream-Status: Inappropriate [embedded specific]
2
3When enable static daq for snort, it calls to daq-modules-config to get link
4library and library path. Library path is useless for oe and cause host
5contamination issue. So filter it.
6
7Signed-off-by: Kai Kang <kai.kang@windriver.com>
8---
9diff --git a/configure.in b/configure.in
10index fded45b..a247bb9 100644
11--- a/configure.in
12+++ b/configure.in
13@@ -658,7 +658,7 @@ fi
14
15 if test "x$enable_static_daq" = "xyes"; then
16 LDAQ=""
17- LIBS="${LIBS} `daq-modules-config --static --libs`"
18+ LIBS="${LIBS} `daq-modules-config --static --libs | sed 's#-L[^ ]*##g'`"
19 AC_CHECK_LIB([daq_static], [daq_load_modules],
20 [LIBS="-ldaq_static ${LIBS}"], [LDAQ="no"], [ ])
21