9c1b9c279e
Fix the following static build failure raised since commit
77f4d2f8ef
:
../ipcalc-maxmind.c:41:11: fatal error: dlfcn.h: No such file or directory
41 | # include <dlfcn.h>
| ^~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/5f867aeab9c61538e34b14023d0ba327698d3c04
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
34 lines
885 B
Makefile
34 lines
885 B
Makefile
################################################################################
|
|
#
|
|
# ipcalc
|
|
#
|
|
################################################################################
|
|
|
|
IPCALC_VERSION = 1.0.1
|
|
IPCALC_SITE = $(call gitlab,ipcalc,ipcalc,$(IPCALC_VERSION))
|
|
IPCALC_SOURCE = ipcalc-$(IPCALC_VERSION).tar.bz2
|
|
IPCALC_LICENSE = GPL-2.0+
|
|
IPCALC_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
IPCALC_CONF_OPTS += -Duse_runtime_linking=disabled
|
|
else
|
|
IPCALC_CONF_OPTS += -Duse_runtime_linking=enabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GEOIP),y)
|
|
IPCALC_CONF_OPTS += -Duse_geoip=enabled
|
|
IPCALC_DEPENDENCIES += host-pkgconf geoip
|
|
else
|
|
IPCALC_CONF_OPTS += -Duse_geoip=disabled
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
|
IPCALC_CONF_OPTS += -Duse_maxminddb=enabled
|
|
IPCALC_DEPENDENCIES += host-pkgconf libmaxminddb
|
|
else
|
|
IPCALC_CONF_OPTS += -Duse_maxminddb=disabled
|
|
endif
|
|
|
|
$(eval $(meson-package))
|