[Buildroot] [git commit] package/ipcalc: fix static build
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Wed Nov 3 22:35:28 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=9c1b9c279ed5fba9e1d3284c3a484837303b042e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Fix the following static build failure raised since commit
77f4d2f8efcb6e3d842cd9719311907ecec6147b:
../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 at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/ipcalc/ipcalc.mk | 6 ++++++
1 file changed, 6 insertions(+)
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
More information about the buildroot
mailing list