nmap: use system liblinear
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 9 Oct 2018 17:22:17 +0000 (19:22 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 11 Oct 2018 08:06:51 +0000 (10:06 +0200)
commitc0d9ba562c5522096d4ed70827c599c9a0e9aa7c
treec20dc61d4d6620469e51aa96a4f1d08a4e6b91c4
parent36bf14cf0420a312e702cf92573813d8685579a4
nmap: use system liblinear

Use system liblinear instead of using included liblinear.
liblinear in buildroot is at version 2.20 released on December 2017
whereas liblinear in nmap has not been updated since 7 years (except for
liblinear.vcxproj which has been updated 2 years ago)

Do not use --with-liblinear option as otherwise nmap will forget to add
-llinear to LIBS due to the following line in configure.ac:

if test $have_liblinear != yes; then
  AC_CHECK_HEADERS([linear.h],
    AC_CHECK_LIB(linear, predict, [have_liblinear=yes; LIBLINEAR_LIBS="-llinear"; break],, [-lm])
)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/nmap/Config.in
package/nmap/nmap.mk