Subject: | Does not build on clang platforms |
It seems that Alien-SLOCCount does not build on platforms where the C compiler is clang and not gcc. This is the case on newer FreeBSD versions (10.0 and up). The error message is:
...
Alien::Build::CommandSequence> + make EXE_SUFFIX=.exe
gcc -Wall c_count.c -o c_count.exe
make[1]: exec(gcc) failed (No such file or directory)
*** Error code 1
...
I think the easiest fix could be to use "cc" instead of "gcc". All systems I know link "cc" to the primary C compiler (gcc or clang). Additionally, clang is mostly option-compatible with gcc, so usually things just work.