fixed OSF/1 shared lib problem (bug 1065260)
This commit is contained in:
parent
e25c7c2ad5
commit
0d5e6ccfd6
|
@ -416,8 +416,13 @@ case $ARCH in
|
||||||
VERSION="${MAJOR}.${MINOR}"
|
VERSION="${MAJOR}.${MINOR}"
|
||||||
LIBNAME="lib${LIBNAME}.so"
|
LIBNAME="lib${LIBNAME}.so"
|
||||||
echo "mklib: Making OSF/1 shared library: " ${LIBNAME}
|
echo "mklib: Making OSF/1 shared library: " ${LIBNAME}
|
||||||
|
if [ $CPLUSPLUS = 1 ] ; then
|
||||||
|
LINK=$CXX
|
||||||
|
else
|
||||||
|
LINK=$CC
|
||||||
|
fi
|
||||||
rm -f ${LIBNAME}.${VERSION}
|
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}
|
ln -sf ${LIBNAME}.${VERSION} ${LIBNAME}
|
||||||
FINAL_LIBS="${LIBNAME} ${LIBNAME}.${VERSION}"
|
FINAL_LIBS="${LIBNAME} ${LIBNAME}.${VERSION}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue