Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | From f46d096015d7402a37a59eb66b8f6b7fbf0cdff0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Kai Kang <kai.kang@windriver.com> |
| 3 | Date: Wed, 24 May 2017 17:38:53 +0800 |
| 4 | Subject: [PATCH] snort: enable static daq |
| 5 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 6 | Upstream-Status: Inappropriate [embedded specific] |
| 7 | |
| 8 | When enable static daq for snort, it calls to daq-modules-config to get link |
| 9 | library and library path. Library path is useless for oe and cause host |
| 10 | contamination issue. So filter it. |
| 11 | |
| 12 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 13 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | --- |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 15 | configure.in | 2 +- |
| 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 17 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | diff --git a/configure.in b/configure.in |
| 19 | index 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 | |