[Buildroot] [PATCH 1/1] package/haproxy: set USE_DL if needed

Fabrice Fontaine fontaine.fabrice at gmail.com
Tue Jul 14 17:25:29 UTC 2020


haproxy uses dladdr since version 2.2.0 and
http://git.haproxy.org/?p=haproxy.git;a=commit;h=eb8b1ca3eb4c8d4688e1a4a1d9c1b91f68324e09

So set USE_DL to enable linking with -ldl

Fixes:
 - http://autobuild.buildroot.org/results/7bb76153b7dd8f392b247569c53d0f4cbf408371

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/haproxy/haproxy.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/haproxy/haproxy.mk b/package/haproxy/haproxy.mk
index 6f97840f6d..fba9a7c137 100644
--- a/package/haproxy/haproxy.mk
+++ b/package/haproxy/haproxy.mk
@@ -15,6 +15,10 @@ HAPROXY_MAKE_OPTS = \
 	PREFIX=/usr \
 	TARGET=custom
 
+ifneq ($(BR2_STATIC_LIBS),y)
+HAPROXY_MAKE_OPTS += USE_DL=1
+endif
+
 ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
 HAPROXY_LIBS += -latomic
 endif
-- 
2.27.0



More information about the buildroot mailing list