Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | Upstream-Status: Inappropriate [embedded specific] |
| 2 | |
| 3 | When enable static daq for snort, it calls to daq-modules-config to get link |
| 4 | library and library path. Library path is useless for oe and cause host |
| 5 | contamination issue. So filter it. |
| 6 | |
| 7 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 8 | --- |
| 9 | diff --git a/configure.in b/configure.in |
| 10 | index 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 | |