From patchwork Sun Oct 5 13:45:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 396649 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 3B1801400A3 for ; Mon, 6 Oct 2014 00:45:47 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2900FA1FAD; Sun, 5 Oct 2014 13:45:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RAnoIx67346v; Sun, 5 Oct 2014 13:45:41 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 37975A1F84; Sun, 5 Oct 2014 13:45:40 +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 401D21C22E0 for ; Sun, 5 Oct 2014 13:45:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3B2FC30EB3 for ; Sun, 5 Oct 2014 13:45:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4lxq863D5fBT for ; Sun, 5 Oct 2014 13:45:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) by silver.osuosl.org (Postfix) with ESMTPS id 38096311F6 for ; Sun, 5 Oct 2014 13:45:31 +0000 (UTC) Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de [172.20.27.150]) by mailout02.t-online.de (Postfix) with SMTP id 392E13D053B for ; Sun, 5 Oct 2014 15:45:29 +0200 (CEST) Received: from fli4l.lan.fli4l (EkNlk-ZpYhyIc9oL-POHzSlCKVeN6qqOLu+WNo5yj-41zBF1qfSm-Cifa50Csg2ZVo@[79.247.128.146]) by fwd07.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1Xam7q-13pHsm0; Sun, 5 Oct 2014 15:45:26 +0200 Received: from fli4lbuild64.lan.fli4l ([192.168.1.51]:45614) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1Xam7p-00062F-AO; Sun, 05 Oct 2014 15:45:25 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 5 Oct 2014 15:45:12 +0200 Message-Id: <1412516718-12597-2-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1412516718-12597-1-git-send-email-bernd.kuhls@t-online.de> References: <1412516718-12597-1-git-send-email-bernd.kuhls@t-online.de> X-ID: EkNlk-ZpYhyIc9oL-POHzSlCKVeN6qqOLu+WNo5yj-41zBF1qfSm-Cifa50Csg2ZVo X-TOI-MSGID: 99b7bd90-0ac2-4a58-a335-2d5fbe5fcb2d Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 2/8] package/apr: Fix detection of rlimit and large file support 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" Snippets from configure log: before: checking whether to enable -D_LARGEFILE64_SOURCE... no ... checking struct rlimit... no after checking whether to enable -D_LARGEFILE64_SOURCE... (cached) yes ... checking struct rlimit... (cached) yes Signed-off-by: Bernd Kuhls --- package/apr/apr.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/apr/apr.mk b/package/apr/apr.mk index bdf4c78..82b1ad2 100644 --- a/package/apr/apr.mk +++ b/package/apr/apr.mk @@ -19,6 +19,7 @@ APR_CONF_ENV = \ apr_cv_mutex_robust_shared=no \ apr_cv_tcp_nodelay_with_cork=yes \ ac_cv_sizeof_struct_iovec=8 \ + ac_cv_struct_rlimit=yes \ apr_cv_mutex_recursive=yes APR_CONFIG_SCRIPTS = apr-1-config @@ -27,6 +28,11 @@ ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y) APR_CONF_ENV += apr_cv_pthreads_lib="-lpthread" endif +# Fix lfs detection when cross compiling +ifeq ($(BR2_LARGEFILE),y) +APR_CONF_ENV += apr_cv_use_lfs64=yes +endif + define APR_CLEANUP_UNNEEDED_FILES $(RM) -rf $(TARGET_DIR)/usr/build-1/ endef