* [Buildroot] [PATCH 1/1] package/ipcalc: fix static build
@ 2021-10-30 21:54 Fabrice Fontaine
2021-11-03 22:35 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-10-30 21:54 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine, Derrick Lyndon Pallas
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@gmail.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
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/ipcalc: fix static build
2021-10-30 21:54 [Buildroot] [PATCH 1/1] package/ipcalc: fix static build Fabrice Fontaine
@ 2021-11-03 22:35 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-11-03 22:35 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Derrick Lyndon Pallas, buildroot
On Sat, 30 Oct 2021 23:54:14 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> 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@gmail.com>
> ---
> package/ipcalc/ipcalc.mk | 6 ++++++
> 1 file changed, 6 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-03 22:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30 21:54 [Buildroot] [PATCH 1/1] package/ipcalc: fix static build Fabrice Fontaine
2021-11-03 22:35 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox