[PATCH 1/2] mtd-utils: integck: Use $(CC) and $(AR) instead of 'gcc' and 'ar' consistently

Mats Kärrman Mats.Karrman at tritech.se
Mon Apr 14 04:47:01 PDT 2014


>From b7ca80dbccda63a1ecabc15912d9bb1b73d66318 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mats=20K=C3=A4rrman?= <mats.karrman at tritech.se>
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 <mats.karrman at tritech.se>
---
 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
-- 
1.7.10.4



More information about the linux-mtd mailing list