| 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"], [ ]) |
| |