All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] gettext: fix static build failure
@ 2013-01-19 12:06 Gustavo Zacarias
  2013-01-20  8:55 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Gustavo Zacarias @ 2013-01-19 12:06 UTC (permalink / raw)
  To: buildroot

When static libraries are preferred we don't build dynamic libraries so
it fails on the install phase. So don't try to do it for those cases.
Fixes:
http://autobuild.buildroot.net/results/651537ae1909b039e0cfc5c104ee87f93a9e5792/

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 package/gettext/gettext.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/gettext/gettext.mk b/package/gettext/gettext.mk
index 953077d..204af10 100644
--- a/package/gettext/gettext.mk
+++ b/package/gettext/gettext.mk
@@ -35,9 +35,12 @@ endif
 # When the gettext tools are not enabled in the configuration, we only
 # install libintl to the target.
 ifeq ($(BR2_PACKAGE_GETTEXT_TOOLS),)
+# When static libs are preferred the .so files aren't created
+ifeq ($(BR2_PREFER_STATIC_LIB),)
 define GETTEXT_INSTALL_TARGET_CMDS
 	cp -dpf $(STAGING_DIR)/usr/lib/libintl*.so* $(TARGET_DIR)/usr/lib/
 endef
+endif
 # Ditch the tools since they're off and pull other dependencies
 define GETTEXT_DISABLE_TOOLS
 	$(SED) 's/runtime gettext-tools/runtime/' $(@D)/Makefile.in
-- 
1.7.12.4

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

* [Buildroot] [PATCH] gettext: fix static build failure
  2013-01-19 12:06 [Buildroot] [PATCH] gettext: fix static build failure Gustavo Zacarias
@ 2013-01-20  8:55 ` Peter Korsgaard
  2013-01-20 12:28   ` Gustavo Zacarias
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2013-01-20  8:55 UTC (permalink / raw)
  To: buildroot

>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:

 Gustavo> When static libraries are preferred we don't build dynamic libraries so
 Gustavo> it fails on the install phase. So don't try to do it for those cases.
 Gustavo> Fixes:
 Gustavo> http://autobuild.buildroot.net/results/651537ae1909b039e0cfc5c104ee87f93a9e5792/

Committed, thanks.

We arguably should install the .a file to the target then, but as
target-gcc is going away ..

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] gettext: fix static build failure
  2013-01-20  8:55 ` Peter Korsgaard
@ 2013-01-20 12:28   ` Gustavo Zacarias
  0 siblings, 0 replies; 3+ messages in thread
From: Gustavo Zacarias @ 2013-01-20 12:28 UTC (permalink / raw)
  To: buildroot

On 01/20/2013 05:55 AM, Peter Korsgaard wrote:

> Committed, thanks.
> 
> We arguably should install the .a file to the target then, but as
> target-gcc is going away ..

Yes, completely on purpose.
There are probably other packages that don't do it either, so there's
not much point in looking around and fixing it for an option that's
going away.
Regards.

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

end of thread, other threads:[~2013-01-20 12:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-19 12:06 [Buildroot] [PATCH] gettext: fix static build failure Gustavo Zacarias
2013-01-20  8:55 ` Peter Korsgaard
2013-01-20 12:28   ` Gustavo Zacarias

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.