package/haproxy: set USE_DL if needed
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
@@ -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
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=eb8b1ca3eb4c8d4688e1a4a1d9c1b91f68324e09So set
USE_DLto enable linking with -ldlFixes:
- http://autobuild.buildroot.org/results/7bb76153b7dd8f392b247569c53d0f4cbf408371Signed-off-by Fabrice Fontaine <[email protected]>--- package/haproxy/haproxy.mk | 4 ++++ 1 file changed, 4 insertions(+)package/haproxy/haproxy.mk +0
-0
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