From patchwork Sun Apr 12 14:21:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 460495 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id AEAF614027F for ; Mon, 13 Apr 2015 00:22:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 01B3494FDB; Sun, 12 Apr 2015 14:22:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rrTV2lKX-073; Sun, 12 Apr 2015 14:21:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id AFA9994FD9; Sun, 12 Apr 2015 14:21:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7BD391C229C for ; Sun, 12 Apr 2015 14:21:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 75B1B91529 for ; Sun, 12 Apr 2015 14:21:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n093c-S1+hqD for ; Sun, 12 Apr 2015 14:21:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by whitealder.osuosl.org (Postfix) with ESMTPS id 1257691522 for ; Sun, 12 Apr 2015 14:21:56 +0000 (UTC) Received: from fwd16.aul.t-online.de (fwd16.aul.t-online.de [172.20.26.243]) by mailout09.t-online.de (Postfix) with SMTP id 821DE4BB0BD for ; Sun, 12 Apr 2015 16:21:53 +0200 (CEST) Received: from fli4l.lan.fli4l (S+bFqrZZYhKGG2Rp8WOYGu68a8NTIgFYUThsbiiTUH-qa93gYAg3FIVh3R9qc6Pw3Y@[87.146.222.109]) by fwd16.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YhIli-2MPzZw0; Sun, 12 Apr 2015 16:21:50 +0200 Received: from fli4lbuild64.lan.fli4l ([192.168.1.51]:36412) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1YhIlh-0003iB-7I; Sun, 12 Apr 2015 16:21:49 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 12 Apr 2015 16:21:46 +0200 Message-Id: <1428848507-2117-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 X-ID: S+bFqrZZYhKGG2Rp8WOYGu68a8NTIgFYUThsbiiTUH-qa93gYAg3FIVh3R9qc6Pw3Y X-TOI-MSGID: 244f1389-9980-42fa-915b-7722ce2af70d Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/2] package/exim: Adjust libnsl detection to include musl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "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 --- 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