Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/libuio: fix build with external intl library
@ 2016-07-02  9:00 Romain Naour
  2016-07-02  9:00 ` [Buildroot] [PATCH 2/3] package/libuio: disable Werror Romain Naour
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Romain Naour @ 2016-07-02  9:00 UTC (permalink / raw)
  To: buildroot

When intl library is not provided by the libc, libuio forget to link
with -lintl.

Fixes:
http://autobuild.buildroot.net/results/8f7/8f715b4e9b826dac13f3d49da25576e6e1d79449

Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
 package/libuio/libuio.mk | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/package/libuio/libuio.mk b/package/libuio/libuio.mk
index e019fe9..6a73d23 100644
--- a/package/libuio/libuio.mk
+++ b/package/libuio/libuio.mk
@@ -21,7 +21,16 @@ LIBUIO_CONF_ENV += MAKEINFO=true
 
 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
 LIBUIO_DEPENDENCIES += argp-standalone
-LIBUIO_CONF_ENV += LIBS="-largp"
+LIBUIO_ARGP_LIBS += -largp
 endif
 
+# libuio pulls in libintl if needed, so ensure we also
+# link against it, otherwise static linking fails
+ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
+LIBUIO_DEPENDENCIES += gettext
+LIBUIO_INTL_LIBS += -lintl
+endif
+
+LIBUIO_CONF_ENV += LIBS="$(LIBUIO_ARGP_LIBS) $(LIBUIO_INTL_LIBS)"
+
 $(eval $(autotools-package))
-- 
2.5.5

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

end of thread, other threads:[~2016-07-02 11:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-02  9:00 [Buildroot] [PATCH 1/3] package/libuio: fix build with external intl library Romain Naour
2016-07-02  9:00 ` [Buildroot] [PATCH 2/3] package/libuio: disable Werror Romain Naour
2016-07-02 11:03   ` Yann E. MORIN
2016-07-02 11:27   ` Peter Korsgaard
2016-07-02  9:00 ` [Buildroot] [PATCH 3/3] package/libuio: fix build with musl Romain Naour
2016-07-02 11:02   ` Yann E. MORIN
2016-07-02 11:27   ` Peter Korsgaard
2016-07-02 11:04 ` [Buildroot] [PATCH 1/3] package/libuio: fix build with external intl library Yann E. MORIN
2016-07-02 11:16   ` Romain Naour
2016-07-02 11:26 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox