Skip to contentSkip to conversation

package/haproxy: set USE_DL if needed

PATCH New Fabrice Fontaine 2 participants 2 messages Jul 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/haproxy: set USE_DL if needed

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

---
 package/haproxy/haproxy.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/haproxy/haproxy.mk +4 -0
index 6f97840f6d..fba9a7c137 100644
@@ -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
Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/1 package/haproxy: set USE_DL if needed

Quoted 18 lines · On Tue, 14 Jul 2020 19:25:29 +0200 Fabrice Fontaine…

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

---
 package/haproxy/haproxy.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/haproxy/haproxy.mk +0 -0
index 6f97840f6d..fba9a7c137 100644

package/haproxy/haproxy.mk HAPROXY_MAKE_OPTS = \ · line 18

Quoted 4 lines
package/haproxy/haproxy.mk +1 -0
@@ -15,6 +15,10 @@ HAPROXY_MAKE_OPTS = \
 	PREFIX=/usr \
 	TARGET=custom
 
+ifneq ($(BR2_STATIC_LIBS),y)

We prefer positive logic:

ifeq ($(BR2_STATIC_LIBS),)

so I modified this and applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com