LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   export CC=/usr/bin/gcc-3.2 - switch gcc version? (https://www.linuxquestions.org/questions/linux-software-2/export-cc%3D-usr-bin-gcc-3-2-switch-gcc-version-83536/)

ferreter 08-19-2003 12:32 PM

export CC=/usr/bin/gcc-3.2 - switch gcc version?
 
So, if I needed to have my default compiler be gcc and I have two versions (3.2 and 2.95) can I just use the:

export CC=/usr/bin/gcc-3.2

command before doing a kernel compile for instance to assure that the newer compiler is used?

Thanks.

rch 08-20-2003 12:07 AM

2.95 is the stable and most reliable version of gcc, and I would not recommend you to use 3.2 as some errors may pop up,you can change the compiler in many ways (using alias,exporting as you did )
or better still edit the top level makefile in the line CC=gcc edit to make
CC=gcc3.2


All times are GMT -5. The time now is 01:17 PM.