diff --git a/package/ipcalc/ipcalc.mk b/package/ipcalc/ipcalc.mk index 704844292a..dfe35e2cdc 100644 --- a/package/ipcalc/ipcalc.mk +++ b/package/ipcalc/ipcalc.mk @@ -10,6 +10,12 @@ 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