Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/exim: Adjust libnsl detection to include musl
@ 2015-04-12 14:21 Bernd Kuhls
  2015-04-12 14:21 ` [Buildroot] [PATCH 2/2] package/exim: Fix compilation error with musl Bernd Kuhls
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bernd Kuhls @ 2015-04-12 14:21 UTC (permalink / raw)
  To: buildroot

Only (e)glibc provides libnsl, uclibc provides only a stub

Fixes compilation using this defconfig

    BR2_arm=y
    BR2_cortex_a7=y
    BR2_STATIC_LIBS=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_PACKAGE_OPENSSL=y
    BR2_PACKAGE_EXIM=y

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

diff --git a/package/exim/exim.mk b/package/exim/exim.mk
index 0a70c42..fcf2be5 100644
--- a/package/exim/exim.mk
+++ b/package/exim/exim.mk
@@ -81,8 +81,9 @@ define EXIM_USE_DEFAULT_CONFIG_FILE_OPENSSL
 endef
 endif
 
-# this specific toolchain lacks libnsl
-ifeq ($(BR2_TOOLCHAIN_EXTERNAL_SYNOPSYS_ARC_2014_12),y)
+# only (e)glibc provides libnsl, remove -lnsl for all other toolchains
+# http://bugs.exim.org/show_bug.cgi?id=1564
+ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),)
 define EXIM_REMOVE_LIBNSL_FROM_MAKEFILE
 	$(SED) 's/-lnsl//g' $(@D)/OS/Makefile-Linux
 endef
-- 
1.7.10.4

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

end of thread, other threads:[~2015-07-02 16:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-12 14:21 [Buildroot] [PATCH 1/2] package/exim: Adjust libnsl detection to include musl Bernd Kuhls
2015-04-12 14:21 ` [Buildroot] [PATCH 2/2] package/exim: Fix compilation error with musl Bernd Kuhls
2015-07-02 16:09   ` Luca Ceresoli
2015-04-12 16:54 ` [Buildroot] [PATCH 1/2] package/exim: Adjust libnsl detection to include musl Thomas Petazzoni
2015-06-30 17:45   ` Bernd Kuhls
2015-06-30 21:08 ` Thomas Petazzoni

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