It appears that passing the preferred compiler to configure is very different for different projects. For example, if I want to build tcc with clang I must do ./configure --cc=clang
but in most other cases a project would understand the ./configure CC=clang
. Is there even a de facto standard or does it not matter and I should check for each individual project which way it is done?
$ wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/tcc/0.9.27\+git20200814.62c30a4a-1/tcc_0.9.27\+git20200814.62c30a4a.orig.tar.bz2
$ tar -xvjf tcc_0.9.27+git20200814.62c30a4a.orig.tar.bz2
$ ./configure --cc=clang
$ make
$ make install