summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2003-09-08 14:59:11 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2003-09-08 14:59:11 +0000
commit176108767d6db89bc1a0b9d964750059e919c796 (patch)
tree89c5327f23aac01e4a374b6c382c94fa442f2f62 /bin
parente39cbf63f6cc026bb1ee107304ed2f6ef7ff5478 (diff)
SunOS tweaks (Greg Menke)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mklib7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/mklib b/bin/mklib
index 8dc91de20b..b207ade5e1 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -143,11 +143,11 @@ case $ARCH in
# link for C++
if [ "x${CXX}" = "xg++" ] ; then
LINK="g++"
+ elif [ "x${CXX}" = "xCC" ] ; then
+ LINK="CC"
elif [ `which c++` ] ; then
LINK="c++"
- elif [ `which CC` ] ; then
- LINK="CC"
- elif [ `which g++` ] ; then
+ elif [ `type g++` ] ; then
LINK="g++"
else
echo "mklib: warning: can't find C++ comiler, trying CC."
@@ -160,6 +160,7 @@ case $ARCH in
# use native Sun linker
LINK="ld"
fi
+ echo "mklib: linker is " ${LINK}
rm -f ${LIBNAME}
${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS}
FINAL_LIBS=${LIBNAME}