Skip to contentSkip to conversation

Use $(CC) consistently throughout the Makefile

PATCH New Ryan Anderson 1 participant 1 message Jun 8, 2003 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use $(CC) consistently throughout the Makefile

This patch makes compilation of sparse use the correct version of gcc throughout. (It doesn't seem to have caused any problems, but the current situation isn't strictly correct, so...)

Makefile +1 -1
diff -Nru a/Makefile b/Makefile
@@ -41,7 +41,7 @@
 tokenize.o: $(LIB_H)
 
 pre-process.h:
-	echo "#define GCC_INTERNAL_INCLUDE \"`gcc -print-file-name=include`\"" > pre-process.h
+	echo "#define GCC_INTERNAL_INCLUDE \"`$(CC) -print-file-name=include`\"" > pre-process.h
 
 clean:
 	rm -f *.[oasi] core core.[0-9]* $(PROGRAMS) pre-process.h
Signature · 2 lines
Ryan Anderson
  sometimes Pug Majere