From patchwork Mon Apr 14 11:47:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Mats_K=C3=A4rrman?= X-Patchwork-Id: 338917 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1D0F414008C for ; Mon, 14 Apr 2014 21:49:25 +1000 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WZfMS-00035V-QM; Mon, 14 Apr 2014 11:47:40 +0000 Received: from tritech.se ([46.59.120.190]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WZfMN-0002fX-FC for linux-mtd@lists.infradead.org; Mon, 14 Apr 2014 11:47:36 +0000 Received: from post.tritech.se (post.tritech.se [10.75.60.100]) by tritech.se (8.14.3/8.14.3) with ESMTP id s3EBkwnH000892; Mon, 14 Apr 2014 13:47:03 +0200 Received: from POST.tritech.se ([fe80::b4fc:968e:bbef:54cb]) by post.tritech.se ([fe80::b4fc:968e:bbef:54cb%10]) with mapi id 14.02.0387.000; Mon, 14 Apr 2014 13:47:02 +0200 From: =?iso-8859-1?Q?Mats_K=E4rrman?= To: "linux-mtd@lists.infradead.org" , "Artem Bityutskiy" Subject: [PATCH 1/2] mtd-utils: integck: Use $(CC) and $(AR) instead of 'gcc' and 'ar' consistently Thread-Topic: [PATCH 1/2] mtd-utils: integck: Use $(CC) and $(AR) instead of 'gcc' and 'ar' consistently Thread-Index: Ac9X1o+O4G4Pccg0Tu2mz0at6dcAOQ== Date: Mon, 14 Apr 2014 11:47:01 +0000 Message-ID: Accept-Language: en-US, sv-SE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [194.132.137.82] MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140414_044735_856408_BBEC71DC X-CRM114-Status: UNSURE ( 6.21 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.3.2 on bombadil.infradead.org summary: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -1.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From b7ca80dbccda63a1ecabc15912d9bb1b73d66318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20K=C3=A4rrman?= Date: Fri, 11 Apr 2014 09:38:21 +0200 Subject: [PATCH 1/2] mtd-utils: integck: Use $(CC) and $(AR) instead of 'gcc' and 'ar' consistently Not using the macros may be a problem when cross-compiling. Signed-off-by: Mats Karrman --- tests/fs-tests/integrity/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fs-tests/integrity/Makefile b/tests/fs-tests/integrity/Makefile index 4d6fc7d..b64bad9 100644 --- a/tests/fs-tests/integrity/Makefile +++ b/tests/fs-tests/integrity/Makefile @@ -18,14 +18,14 @@ all: $(TARGETS) # Compile ubilib libubi.a: $(CC) $(CFLAGS) -c $(LIBUBI_PATH)/libubi.c -o libubi.o - ar cr libubi.a libubi.o + $(AR) cr libubi.a libubi.o $(TARGETS): libubi.a # Disable optimizations to make it possible to use gdb comfortably # Use -rdynamic to have stack backtraces debug: libubi.a - gcc $(CFLAGS) -O0 -D INTEGCK_DEBUG -rdynamic integck.c libubi.a -o integck + $(CC) $(CFLAGS) -O0 -D INTEGCK_DEBUG -rdynamic integck.c libubi.a -o integck clean: rm -f *.o $(TARGETS) libubi.a