From patchwork Mon Feb 10 21:48:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Ceresoli X-Patchwork-Id: 1236025 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=lucaceresoli.net Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48GfjY1X0zz9sPF for ; Tue, 11 Feb 2020 08:50:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 7837B2000E; Mon, 10 Feb 2020 21:50:55 +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 nsQxzOmccCWe; Mon, 10 Feb 2020 21:50:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4F7042043E; Mon, 10 Feb 2020 21:50:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 706AC1BF393 for ; Mon, 10 Feb 2020 21:50:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D80385404 for ; Mon, 10 Feb 2020 21:50:53 +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 tNqiULDL5pMq for ; Mon, 10 Feb 2020 21:50:52 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from hostingweb31-40.netsons.net (hostingweb31-40.netsons.net [89.40.174.40]) by whitealder.osuosl.org (Postfix) with ESMTPS id 89EF384F27 for ; Mon, 10 Feb 2020 21:50:52 +0000 (UTC) Received: from 78-134-119-80.v4.ngi.it ([78.134.119.80]:42800 helo=melee.fritz.box) by hostingweb31.netsons.net with esmtpa (Exim 4.92) (envelope-from ) id 1j1Gwy-008k22-4y; Mon, 10 Feb 2020 22:50:50 +0100 From: Luca Ceresoli To: buildroot@buildroot.org Date: Mon, 10 Feb 2020 22:48:40 +0100 Message-Id: <20200210214840.15023-4-luca@lucaceresoli.net> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200210214840.15023-1-luca@lucaceresoli.net> References: <20200210214840.15023-1-luca@lucaceresoli.net> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - hostingweb31.netsons.net X-AntiAbuse: Original Domain - buildroot.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: hostingweb31.netsons.net: authenticated_id: luca+lucaceresoli.net/only user confirmed/virtual account not confirmed X-Authenticated-Sender: hostingweb31.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Subject: [Buildroot] [PATCH v2 3/3] package/exim: fix build error during install step X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Luca Ceresoli , Bernd Kuhls Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" exim builds some files during the 'make install' step, and these fail with an error: lookups/lf_quote.c:49:3: error: 'for' loop initial declarations are only allowed in C99 mode for (int j = 0; j < vlength; j++) ^ Fix by passing the -std=c99 here, as it is already passed in the build step. Signed-off-by: Luca Ceresoli Cc: Bernd Kuhls --- Changes since v1: none. --- package/exim/exim.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/exim/exim.mk b/package/exim/exim.mk index 0ad9a8de8000..e4b0bfc1b488 100644 --- a/package/exim/exim.mk +++ b/package/exim/exim.mk @@ -135,7 +135,9 @@ endef # something when installing... define EXIM_INSTALL_TARGET_CMDS DESTDIR=$(TARGET_DIR) INSTALL_ARG="-no_chown -no_symlink" build=br \ - $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) install + $(MAKE1) -C $(@D) $(EXIM_STATIC_FLAGS) \ + CFLAGS="-std=c99 $(TARGET_CFLAGS)" \ + install chmod u+s $(TARGET_DIR)/usr/sbin/exim endef