Check for libraries before functions and fixed detection of -c -o problem. Thanks to Tim Rice <tim@trr.metro.NET> for pointing those out.

Modified hcc & hcpp to work for any compiler that doesn't support -c -o, not just Unixware.   They expect the real compiler to be the first argument now.


git-svn-id: svn://10.0.0.236/trunk@15162 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org
1998-11-23 17:12:39 +00:00
parent 5de60a0010
commit 9882158615
3 changed files with 81 additions and 81 deletions

View File

@@ -19,7 +19,8 @@
#
# Wrapper for brain-damaged compilers that don't understand -o and -c together.
#
CXX=`echo $1 | sed -e "s|'||g" -e 's|"||g'`
shift
DUMMY="XxxXxxX"
DASH_C=0
DASH_O=0
@@ -61,7 +62,7 @@ do
esac
done
CC $* || exit $?
${CXX} $* || exit $?
# LAME!!!
if [ -f -O ]; then
@@ -83,4 +84,4 @@ elif [ "${S_SRC}" != "${DUMMY}" ]; then
OBJ=`basename ${S_SRC} .s`.o
fi
[ -f ${OBJECT} ] || [ -f ${OBJ} ] && mv -f ${OBJ} ${OBJECT}
[ -f $OBJECT ] || ( [ -f $OBJ ] && mv -f $OBJ $OBJECT )