Skip to contentSkip to conversation

package/ipcalc: fix static build

PATCH Applied Fabrice Fontaine 2 participants 2 messages Oct 30, 2021 – Nov 3, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ipcalc: fix static build

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

---
 package/ipcalc/ipcalc.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/ipcalc/ipcalc.mk +6 -0
index 704844292a..dfe35e2cdc 100644
@@ -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
Signature · 6 lines
2.33.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 7 lines · On Sat, 30 Oct 2021 23:54:14 +0200 Fabrice Fontaine…

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>

      |           ^~~~~~~~~
Quoted 7 lines

Fixes:
- http://autobuild.buildroot.org/results/5f867aeab9c61538e34b14023d0ba327698d3c04

---
 package/ipcalc/ipcalc.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot