]> www.infradead.org Git - mtd-utils.git/commitdiff
mtd-utils: integck: Use $(CC) and $(AR) instead of 'gcc' and 'ar' consistently
authorMats Kärrman <mats.karrman@tritech.se>
Fri, 11 Apr 2014 07:38:21 +0000 (09:38 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 15 Apr 2014 13:01:12 +0000 (16:01 +0300)
Not using the macros may be a problem when cross-compiling.

Signed-off-by: Mats Karrman <mats.karrman@tritech.se>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
tests/fs-tests/integrity/Makefile

index 4d6fc7d72472a0eb4d9244252a611c61599c7821..b64bad9cb2e18589f38c6511903e5f2334e3e6e9 100644 (file)
@@ -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