SunOS tweaks (Greg Menke)
This commit is contained in:
@@ -143,11 +143,11 @@ case $ARCH in
|
|||||||
# link for C++
|
# link for C++
|
||||||
if [ "x${CXX}" = "xg++" ] ; then
|
if [ "x${CXX}" = "xg++" ] ; then
|
||||||
LINK="g++"
|
LINK="g++"
|
||||||
|
elif [ "x${CXX}" = "xCC" ] ; then
|
||||||
|
LINK="CC"
|
||||||
elif [ `which c++` ] ; then
|
elif [ `which c++` ] ; then
|
||||||
LINK="c++"
|
LINK="c++"
|
||||||
elif [ `which CC` ] ; then
|
elif [ `type g++` ] ; then
|
||||||
LINK="CC"
|
|
||||||
elif [ `which g++` ] ; then
|
|
||||||
LINK="g++"
|
LINK="g++"
|
||||||
else
|
else
|
||||||
echo "mklib: warning: can't find C++ comiler, trying CC."
|
echo "mklib: warning: can't find C++ comiler, trying CC."
|
||||||
@@ -160,6 +160,7 @@ case $ARCH in
|
|||||||
# use native Sun linker
|
# use native Sun linker
|
||||||
LINK="ld"
|
LINK="ld"
|
||||||
fi
|
fi
|
||||||
|
echo "mklib: linker is " ${LINK}
|
||||||
rm -f ${LIBNAME}
|
rm -f ${LIBNAME}
|
||||||
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
|
||||||
FINAL_LIBS=${LIBNAME}
|
FINAL_LIBS=${LIBNAME}
|
||||||
|
Reference in New Issue
Block a user