diff options
author | Brian Paul <[email protected]> | 2006-11-10 12:47:56 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-11-10 12:47:56 +0000 |
commit | 0a3a1c6ae9294634b3b3f496c8bd428b79de8cfa (patch) | |
tree | a6f51201da9b3575f98bccf2c918571aabfc4fc2 | |
parent | 28623163098a92bf43af882fbc63e9ce9f910a26 (diff) |
fix -noprefix option for Solaris (bug 7722)
-rwxr-xr-x | bin/mklib | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/bin/mklib b/bin/mklib index 0637662ff7c..7d468b12e77 100755 --- a/bin/mklib +++ b/bin/mklib @@ -283,7 +283,9 @@ case $ARCH in ar -ruv ${LIBNAME} ${OBJECTS} FINAL_LIBS=${LIBNAME} else - LIBNAME="lib${LIBNAME}.so" + if [ $NOPREFIX = 0 ] ; then + LIBNAME="lib${LIBNAME}.so" + fi echo "mklib: Making SunOS shared library: " ${LIBNAME} if [ "x$LINK" = "x" ] ; then @@ -333,9 +335,14 @@ case $ARCH in # for debug: #echo "mklib: linker is" ${LINK} ${OPTS} - rm -f ${LIBNAME}.${MAJOR} ${LIBNAME} - ${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS} - ln -s ${LIBNAME}.${MAJOR} ${LIBNAME} + if [ $NOPREFIX = 1 ] ; then + rm -f ${LIBNAME} + ${LINK} ${OPTS} -o ${LIBNAME} ${OBJECTS} ${DEPS} + else + rm -f ${LIBNAME}.${MAJOR} ${LIBNAME} + ${LINK} ${OPTS} -o ${LIBNAME}.${MAJOR} ${OBJECTS} ${DEPS} + ln -s ${LIBNAME}.${MAJOR} ${LIBNAME} + fi FINAL_LIBS="${LIBNAME}.${MAJOR} ${LIBNAME}" fi ;; |