mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/libnids: disable libnet only if not available
libnids can be built against an existing libnet lib, take advantage of that. Unfortunately, pkg-config is not available for libnet, so configure --with-libnet is our only option at the moment. --with-libnet expects a build directory, not an installation path like in our context. We use --with-libnet=yes to skip tests that would fail. In this situation, 'LIBNET' goes undefined, so we need to define it ourselves. This works because we make sure -lnet is installed prior anything related to libnids. Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com> [yann.morin.1998@free.fr: slightly compact the code] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
committed by
Yann E. MORIN
parent
5a7d6bab6c
commit
9a54b16058
@@ -11,7 +11,18 @@ LIBNIDS_LICENSE_FILES = COPYING
|
|||||||
LIBNIDS_INSTALL_STAGING = YES
|
LIBNIDS_INSTALL_STAGING = YES
|
||||||
LIBNIDS_DEPENDENCIES = host-pkgconf libpcap
|
LIBNIDS_DEPENDENCIES = host-pkgconf libpcap
|
||||||
LIBNIDS_AUTORECONF = YES
|
LIBNIDS_AUTORECONF = YES
|
||||||
LIBNIDS_CONF_OPTS = --disable-libnet
|
|
||||||
|
# disable libnet if not available
|
||||||
|
# Tests in configure.in expect --with-libnet=$build_dir
|
||||||
|
# not an installation patch like in our context.
|
||||||
|
# We use with-libnet=yes to skip the unusual paths tests.
|
||||||
|
# But 'LNETLIB' gets left out, so we need to define it ourselves.
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBNET),y)
|
||||||
|
LIBNIDS_DEPENDENCIES += libnet
|
||||||
|
LIBNIDS_CONF_OPTS += --enable-libnet --with-libnet=yes LNETLIB=-lnet
|
||||||
|
else
|
||||||
|
LIBNIDS_CONF_OPTS += --disable-libnet
|
||||||
|
endif
|
||||||
|
|
||||||
# disable libglib2 if not available
|
# disable libglib2 if not available
|
||||||
# The test in configure.in is flawed: passing --enable-libglib would also
|
# The test in configure.in is flawed: passing --enable-libglib would also
|
||||||
|
|||||||
Reference in New Issue
Block a user