summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-11-29 17:23:12 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-11-29 17:23:12 +0000
commit0d5e6ccfd6f1358e5a515ab5f149cd3b05cb7d66 (patch)
tree0f73c42f97694afc96d788df20fb39278774e3ca /bin
parente25c7c2ad51787fcfaba7f23242eca7fe7d94487 (diff)
fixed OSF/1 shared lib problem (bug 1065260)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mklib7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/mklib b/bin/mklib
index 858feda07f2..6affa66a1fd 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -416,8 +416,13 @@ case $ARCH in
VERSION="${MAJOR}.${MINOR}"
LIBNAME="lib${LIBNAME}.so"
echo "mklib: Making OSF/1 shared library: " ${LIBNAME}
+ if [ $CPLUSPLUS = 1 ] ; then
+ LINK=$CXX
+ else
+ LINK=$CC
+ fi
rm -f ${LIBNAME}.${VERSION}
- ld -o ${LIBNAME}.${VERSION} -shared -no_archive -set_version ${VERSION} -soname ${LIBNAME}.${VERSION} -expect_unresolved \* -all ${OBJECTS} ${DEPS}
+ ${LINK} -o ${LIBNAME}.${VERSION} -shared -set_version ${VERSION} -soname ${LIBNAME}.${VERSION} -expect_unresolved \* -all ${OBJECTS} ${DEPS}
ln -sf ${LIBNAME}.${VERSION} ${LIBNAME}
FINAL_LIBS="${LIBNAME} ${LIBNAME}.${VERSION}"
fi