On Sun, 12 May 2019, Segher Boessenkool wrote: > "cc" isn't POSIX, since over a decade I think. "c99" is POSIX, and it is > a shell script calling whatever "gcc" is first in the PATH, on most distros.
Note that correct semantics for "c99" mean it's not a trivial wrapper; some option reordering is needed to follow the POSIX rule that -U options take precedence over -D options regardless of ordering on the command line; see discussion in bug 40960 regarding support for installing variant driver programs such as c99 with such differences in how they behave. (I don't know if any distributions actually have wrappers that deal with that, e.g. by using different specs in their wrapper. Another such POSIX issue is that according to POSIX, dlopen et al should be found without needing to special any -l options, but that could be dealt with by adjusting the libc.so linker script, on systems using glibc.) -- Joseph S. Myers jos...@codesourcery.com