All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/lynx: fix build with libidn
@ 2019-05-14 20:25 Vadim Kochan
  2019-05-15  9:53 ` Peter Korsgaard
  2019-06-06  6:41 ` Peter Korsgaard
  0 siblings, 2 replies; 3+ messages in thread
From: Vadim Kochan @ 2019-05-14 20:25 UTC (permalink / raw)
  To: buildroot

In case of BR2_STATIC_LIBS=y the linking with libidn fails because
linker can't resolve libiconv symbols needed by libidn. Fix it by
required LIBS for libidn generated by pkg-conf.

The issue can be reproduced with the following defconfig:

	BR2_x86_i686=y
	BR2_STATIC_LIBS=y
	BR2_PACKAGE_LIBICONV=y
	BR2_PACKAGE_LIBIDN=y
	BR2_PACKAGE_LYNX=y

Fixes:
	http://autobuild.buildroot.net/results/23a421e15c32b17ff2f69f183a2e8620ecb93316/

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
---
 package/lynx/lynx.mk | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/lynx/lynx.mk b/package/lynx/lynx.mk
index 3ac5b4cabf..b6cc1b2b91 100644
--- a/package/lynx/lynx.mk
+++ b/package/lynx/lynx.mk
@@ -23,7 +23,7 @@ endif
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 LYNX_DEPENDENCIES += host-pkgconf openssl
 LYNX_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr
-LYNX_CONF_ENV = LIBS=`$(PKG_CONFIG_HOST_BINARY) --libs openssl`
+LYNX_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs openssl`
 else ifeq ($(BR2_PACKAGE_GNUTLS),y)
 LYNX_DEPENDENCIES += gnutls
 LYNX_CONF_OPTS += --with-gnutls
@@ -36,4 +36,11 @@ else
 LYNX_CONF_OPTS += --without-zlib
 endif
 
+ifeq ($(BR2_PACKAGE_LIBIDN),y)
+LYNX_DEPENDENCIES += libidn
+LYNX_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs libidn`
+endif
+
+LYNX_CONF_ENV = LIBS="$(LYNX_LIBS)"
+
 $(eval $(autotools-package))
-- 
2.21.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/lynx: fix build with libidn
  2019-05-14 20:25 [Buildroot] [PATCH 1/1] package/lynx: fix build with libidn Vadim Kochan
@ 2019-05-15  9:53 ` Peter Korsgaard
  2019-06-06  6:41 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-05-15  9:53 UTC (permalink / raw)
  To: buildroot

>>>>> "Vadim" == Vadim Kochan <vadim4j@gmail.com> writes:

 > In case of BR2_STATIC_LIBS=y the linking with libidn fails because
 > linker can't resolve libiconv symbols needed by libidn. Fix it by
 > required LIBS for libidn generated by pkg-conf.

 > The issue can be reproduced with the following defconfig:

 > 	BR2_x86_i686=y
 > 	BR2_STATIC_LIBS=y
 > 	BR2_PACKAGE_LIBICONV=y
 > 	BR2_PACKAGE_LIBIDN=y
 > 	BR2_PACKAGE_LYNX=y

 > Fixes:
 > 	http://autobuild.buildroot.net/results/23a421e15c32b17ff2f69f183a2e8620ecb93316/

 > Signed-off-by: Vadim Kochan <vadim4j@gmail.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH 1/1] package/lynx: fix build with libidn
  2019-05-14 20:25 [Buildroot] [PATCH 1/1] package/lynx: fix build with libidn Vadim Kochan
  2019-05-15  9:53 ` Peter Korsgaard
@ 2019-06-06  6:41 ` Peter Korsgaard
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2019-06-06  6:41 UTC (permalink / raw)
  To: buildroot

>>>>> "Vadim" == Vadim Kochan <vadim4j@gmail.com> writes:

 > In case of BR2_STATIC_LIBS=y the linking with libidn fails because
 > linker can't resolve libiconv symbols needed by libidn. Fix it by
 > required LIBS for libidn generated by pkg-conf.

 > The issue can be reproduced with the following defconfig:

 > 	BR2_x86_i686=y
 > 	BR2_STATIC_LIBS=y
 > 	BR2_PACKAGE_LIBICONV=y
 > 	BR2_PACKAGE_LIBIDN=y
 > 	BR2_PACKAGE_LYNX=y

 > Fixes:
 > 	http://autobuild.buildroot.net/results/23a421e15c32b17ff2f69f183a2e8620ecb93316/

 > Signed-off-by: Vadim Kochan <vadim4j@gmail.com>

Committed to 2019.02.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-06  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14 20:25 [Buildroot] [PATCH 1/1] package/lynx: fix build with libidn Vadim Kochan
2019-05-15  9:53 ` Peter Korsgaard
2019-06-06  6:41 ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.