From patchwork Sat Aug 11 17:40:49 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 176712 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 7776D2C00A8 for ; Sun, 12 Aug 2012 03:43:31 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 40C8DA0647; Sat, 11 Aug 2012 17:43:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xzctx3tC9X2I; Sat, 11 Aug 2012 17:43:26 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 21E04A0653; Sat, 11 Aug 2012 17:41:57 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 932548F753 for ; Sat, 11 Aug 2012 17:41:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8FDA125682 for ; Sat, 11 Aug 2012 17:41:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QQnnMwzoEp8f for ; Sat, 11 Aug 2012 17:41:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by silver.osuosl.org (Postfix) with ESMTP id CA03720685 for ; Sat, 11 Aug 2012 17:41:53 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 88FE930D; Sat, 11 Aug 2012 19:41:49 +0200 (CEST) Received: from localhost (37-8-187-107.coucou-networks.fr [37.8.187.107]) by mail.free-electrons.com (Postfix) with ESMTPSA id 5F57530B for ; Sat, 11 Aug 2012 19:41:42 +0200 (CEST) From: Thomas Petazzoni To: buildroot@busybox.net Date: Sat, 11 Aug 2012 19:40:49 +0200 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 17/20] xinetd: add support to use RPC support from libtirpc X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Thomas Petazzoni --- package/xinetd/xinetd.mk | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/package/xinetd/xinetd.mk b/package/xinetd/xinetd.mk index a420425..05168a5 100644 --- a/package/xinetd/xinetd.mk +++ b/package/xinetd/xinetd.mk @@ -9,10 +9,20 @@ XINETD_SITE = http://www.xinetd.org XINETD_LICENSE = xinetd license XINETD_LICENSE_FILES = COPYRIGHT -ifneq ($(BR2_TOOLCHAIN_HAS_NATIVE_RPC),y) -XINETD_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DNO_RPC" +XINETD_CFLAGS = $(TARGET_CFLAGS) + +ifeq ($(BR2_RPC_SUPPORT_AVAILABLE),y) +XINETD_DEPENDENCIES += libtirpc +XINETD_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/ +XINETD_LIBS += -ltirpc +else +XINETD_CFLAGS += -DNO_RPC endif +XINETD_CONF_ENV += \ + CFLAGS="$(XINETD_CFLAGS)" \ + LIBS="$(XINETD_LIBS)" + XINETD_MAKE_OPT = AR="$(TARGET_AR)" $(eval $(autotools-package))