das@LOCUS.UCLA.EDU (08/05/86)
For some reason, the 4.3 bsd C compiler does something funny when you give
cc the -c flag, the -o flag, and only one source file; the command
cc -c -o blah blah.c
puts the object file in "blah" and produces no "blah.o" file. This, of course,
is not what the SysV and 4.2 cc do; they effectively ignore the -o option when
-c is specified.
This breaks the CC script, since ..o files are not produced. To fix it, you
have to not accumulate the "-o filename" in the shell variable X; instead,
accumulate it in a variable named OF, say, so you can echo it when needed.
-- David Smallberg, das@locus.ucla.edu, {sdcrdcf,ucbvax}!ucla-cs!das
-- David Smallberg, das@locus.ucla.edu, {sdcrdcf,ucbvax}!ucla-cs!das