[cfarm-users] gcc111.fsffrance.org running AIX does not have a symlink to `cc'

CM Graff cm0graff at gmail.com
Thu Oct 12 05:19:23 CEST 2017

In order for makefiles to be portable without a configure script, one
can _not_ hard code CC = gcc, or CC = clang for that matter.
gcc111.fsffrance.org seems to work fine with basic testing with the
`gcc' binary. However, this is incorrect. There needs to be in the
very least a symlink from `gcc' to `cc'. POSIX does not specify `cc',
however it does not specify `gcc' either. it does however specify
`c99' http://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html
as a utility and indeed POSIX `make' honors it as the default value
for CC http://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html
. It is common knowledge however that `cc' is hard coded as the rule
for GNU make and many others and that any reasonable or historical
vendor of `make' will include it as the default for CC. Or in the very
least default to the POSIX specification of `c99' as the value for CC.
No matter how the cake is cut, our AIX machines (and probably AIX in
general) need to symlink the default system compiler to `cc'.


More information about the cfarm-users mailing list