From patchwork Tue Feb 4 22:10:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Bark X-Patchwork-Id: 316771 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 9035C2C0078 for ; Wed, 5 Feb 2014 09:10:34 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9C930264EC; Tue, 4 Feb 2014 22:10:33 +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 e0W94T0LaoRs; Tue, 4 Feb 2014 22:10:30 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 6DCF12653F; Tue, 4 Feb 2014 22:10:30 +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 63F511C22E6 for ; Tue, 4 Feb 2014 22:10:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5DCB08C346 for ; Tue, 4 Feb 2014 22:10:29 +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 qMi9uTz5hCdk for ; Tue, 4 Feb 2014 22:10:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f176.google.com (mail-we0-f176.google.com [74.125.82.176]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8BE858C3E6 for ; Tue, 4 Feb 2014 22:10:28 +0000 (UTC) Received: by mail-we0-f176.google.com with SMTP id q58so4722108wes.7 for ; Tue, 04 Feb 2014 14:10:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=nH5om12lNi4wRzNnZAalI5b7C9u4msx25+BsPCxK73g=; b=Nxv1FLF+VsufXASGe4NeSv/K+W/TFnj3Cr4Kj/6dWeSuIZtz2oof6fdz95xUG3cnFT E6XqYhWwFqAgWT/KblYzyrjK5cYyg33lQMZmI0A50k+/oo/Tg/qzd/Dh1ZUx5S++e9nl 7nBrX9T7dDQjhosPek1MbrV+Xhr6xdEzQ3ZazOURgXNICmU1wPFOB2C8ucZ9CtniciVd E7k6l26U/uizTQrybN80t15yCKCHtefkkD2pEDggo2qHmmr/VChIzjpN6Y3GJK/Ep1gv 1R2ruh35UKdGFF7tW2OFdxmp+IQbU8AYzCOZv9Yc2tUsi/V02S72qSBvh21lOGAis7Gp s9Iw== X-Gm-Message-State: ALoCoQmtTtVgo5uVKerb+fh0Q1J65VgNP5Kooohd1lVHeU/GKZlyfxP9glQ/qNXPb+V8Fn+VLYda X-Received: by 10.181.8.66 with SMTP id di2mr14460103wid.43.1391551827000; Tue, 04 Feb 2014 14:10:27 -0800 (PST) Received: from homer.home.barkynet.com ([87.112.48.75]) by mx.google.com with ESMTPSA id di9sm39622103wid.6.2014.02.04.14.10.25 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 04 Feb 2014 14:10:26 -0800 (PST) Received: from krusty (krusty.home.barkynet.com [192.168.1.16]) by homer.home.barkynet.com (Postfix) with ESMTP id 4642410A8EA; Tue, 4 Feb 2014 22:06:48 +0000 (GMT) Received: by krusty (Postfix, from userid 2001) id 886B2A400E6; Tue, 4 Feb 2014 22:10:25 +0000 (GMT) From: Martin Bark To: buildroot@busybox.net Date: Tue, 4 Feb 2014 22:10:23 +0000 Message-Id: <1391551823-1216-1-git-send-email-martin@barkynet.com> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH 1/1] dependencies.sh: stop stray a.out being created for ia32 compiler test 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 If the grub package is selected it also selects BR2_HOSTARCH_NEEDS_IA32_COMPILER. This triggers a test in dependencies.sh to verify the host compiler can build 32 bit executables. Currently this test does not set any output for the compiler which causes a stray a.out to be create outside the output directory. This patch sets the compiler output to /dev/null so no a.out is created but the test is still performed. Signed-off-by: Martin Bark --- support/dependencies/dependencies.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 47d4d10..0e22ba0 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -207,7 +207,7 @@ if grep -q ^BR2_HOSTARCH_NEEDS_IA32_LIBS=y $BUILDROOT_CONFIG ; then fi if grep -q ^BR2_HOSTARCH_NEEDS_IA32_COMPILER=y $BUILDROOT_CONFIG ; then - if ! echo "int main(void) {}" | gcc -m32 -x c - ; then + if ! echo "int main(void) {}" | gcc -m32 -x c - -o /dev/null ; then echo echo "Your Buildroot configuration needs a compiler capable of building 32 bits binaries." echo "If you're running a Debian/Ubuntu distribution, install the gcc-multilib package."