snort: avoid detecting the host pcre
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 2 Apr 2018 07:12:26 +0000 (09:12 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 2 Apr 2018 07:16:22 +0000 (09:16 +0200)
commitf6d28852ab36ddcacfd37368f6b2c07d437cbc6b
tree1d7fb607cda86b2d8fde45ac3bdeb65a3b71210d
parentf8546e836784c17aa26970f6345db9d515411700
snort: avoid detecting the host pcre

The pcre configure script does this:

if test "x$with_libpcre_libraries" != "xno"; then
    LDFLAGS="${LDFLAGS}  -L${with_libpcre_libraries}"
else
    LDFLAGS="${LDFLAGS} `pcre-config --libs`"
fi

So if you don't pass --with-libpcre-libraries, it calls pcre-config as
available in the PATH. So it picks up pcre-config from $(HOST_DIR) or
the system, which return results inappropriate for cross-compilation.

So, let's explicitly pass --with-libpcre-includes and
--with-libpcre-libraries to avoid those issues.

Fixes:

  http://autobuild.buildroot.net/results/3df11c48c8e2f795f478d1ee666dda9de19133d0/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/snort/snort.mk