fixed OSF/1 shared lib problem (bug 1065260)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 29 Nov 2004 17:23:12 +0000 (17:23 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 29 Nov 2004 17:23:12 +0000 (17:23 +0000)
bin/mklib

index 858feda..6affa66 100755 (executable)
--- 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