Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/exim: fix build error with external arc toolchain due to missing libnsl
@ 2015-03-28 20:33 Bernd Kuhls
  2015-03-29 12:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2015-03-28 20:33 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/331/331ed781b422448205fb9e7c9730ec0c438d6306/
http://autobuild.buildroot.net/results/402/402d64965ac7ac6e1d4e1990080394958802fe8c/
http://autobuild.buildroot.net/results/960/9605bac2972d3e3d3fb91947ae6921e89210247b/
http://autobuild.buildroot.net/results/6b6/6b61ea80a3a6dcead233c4b408eba8b8d647e841/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/exim/exim.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 34a6893..f39445d 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -62,6 +62,13 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_CLAMAV
 endef
 endif
 
+# this specific toolchain lacks libnsl
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC_2014_12),y)
+define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE
+	$(SED) 's/-lnsl//g' $(@D)/OS/Makefile-Linux
+endef
+endif
+
 define EXIM_CONFIGURE_TOOLCHAIN
 	$(call exim-config-add,CC,$(TARGET_CC))
 	$(call exim-config-add,CFLAGS,$(TARGET_CFLAGS))
@@ -69,6 +76,7 @@ define EXIM_CONFIGURE_TOOLCHAIN
 	$(call exim-config-add,RANLIB,$(TARGET_RANLIB))
 	$(call exim-config-add,HOSTCC,$(HOSTCC))
 	$(call exim-config-add,HOSTCFLAGS,$(HOSTCFLAGS))
+	$(EXIM_REMOVE_LIBNSL_FROM_MAKEFILE)
 endef
 
 ifneq ($(call qstrip,$(BR2_PACKAGE_EXIM_CUSTOM_CONFIG_FILE)),)
-- 
1.7.10.4

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

* [Buildroot] [PATCH 1/1] package/exim: fix build error with external arc toolchain due to missing libnsl
  2015-03-28 20:33 [Buildroot] [PATCH 1/1] package/exim: fix build error with external arc toolchain due to missing libnsl Bernd Kuhls
@ 2015-03-29 12:16 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-03-29 12:16 UTC (permalink / raw)
  To: buildroot

Bernd, Alexey,

On Sat, 28 Mar 2015 21:33:52 +0100, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/331/331ed781b422448205fb9e7c9730ec0c438d6306/
> http://autobuild.buildroot.net/results/402/402d64965ac7ac6e1d4e1990080394958802fe8c/
> http://autobuild.buildroot.net/results/960/9605bac2972d3e3d3fb91947ae6921e89210247b/
> http://autobuild.buildroot.net/results/6b6/6b61ea80a3a6dcead233c4b408eba8b8d647e841/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/exim/exim.mk |    8 ++++++++
>  1 file changed, 8 insertions(+)

Applied, thanks.

Alexey, could you please enable UCLIBC_HAS_LIBNSL_STUB=y in the uClibc
configuration used for the ARC external toolchains? Generally speaking,
if you could have a look at the differences between the uClibc
configuration you're using, and the default Buildroot one, it would be
useful. We cannot support all the little variations of the uClibc
configuration, so if you could use a configuration that is at least a
super-set of the features enabled in the uClibc configuration used by
default in Buildroot, it would really make things easier.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-03-29 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-28 20:33 [Buildroot] [PATCH 1/1] package/exim: fix build error with external arc toolchain due to missing libnsl Bernd Kuhls
2015-03-29 12:16 ` Thomas Petazzoni

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