difference between "CC" and "CROSS_COMPILE" in Makefile
When I cross-compile arm Linux kernel,sometimes I do"make ARCH=arm CC=arm-linux-gcc" and it works, but sometimes I have to do "make ARCH=arm CROSS_COMPILE=arm-linux-". So just wonder whats the difference between them
|
CC is used to define the c compiler itself. CROSS_COMPILE looks like a prefix for me. So sometimes you can use CC=$(CROSS_COMPILE)gcc - or find it inside the makefile.
In general CROSS_COMPILE is more generic and should be used instead of the other one. |
All times are GMT -5. The time now is 09:36 PM. |