Problem
When using the '-o' flag together with the '-c' flag to CC,
the resulting object filename is not the one specified, but
instead defaults to <progname>.o. For example:CC -c test.C -o obj.owill generate an object file called "test.o" and not "obj.o".
Solution
This has been reported to SCO Engineering.
To correct this behavior, modify the shell script /usr/bin/CC. Change the line 1196 which originally reads:
(cd $TEMPDIR; eval $ccC $udeflist $EC $P $NLO -I$OLDDIR $X)
and add the shell variable $OF as an argument to $ccC as follows:
(cd $TEMPDIR; eval $ccC $OF $udeflist $EC $P $NLO -I$OLDDIR $X)