diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-02-21 18:08:41 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-02-21 18:08:41 +0000 |
commit | 6e450f22bb86a18b66ec4053d5aacdf7788753dd (patch) | |
tree | 2d1a33327929bca31effbccdfa00983e12791a3d /bin/mklib | |
parent | 2aa84490c02bc304f31198c6f3d44a31093e664b (diff) |
some minor tweaks
Diffstat (limited to 'bin/mklib')
-rwxr-xr-x | bin/mklib | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -38,7 +38,7 @@ LIBNAME="" MAJOR=1 MINOR=0 -PATCH=0 +PATCH="" DEPS="" CPLUSPLUS=0 STATIC=0 @@ -116,18 +116,23 @@ case $ARCH in if [ $STATIC = 1 ] ; then echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a LINK="ar" - OPTS="-ruv" + OPTS="-ru" # make lib ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS} + ranlib ${LIBNAME}.a # finish up - FINAL_LIBS=${LIBNAME} + FINAL_LIBS=${LIBNAME}.a else if [ $ARCH = 'Linux' ] ; then OPTS="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}" else OPTS="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}" fi - VERSION="${MAJOR}.${MINOR}.${PATCH}" + if [ x${PATCH} = "x" ] ; then + VERSION="${MAJOR}.${MINOR}" + else + VERSION="${MAJOR}.${MINOR}.${PATCH}" + fi echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}.so.${VERSION} @@ -325,7 +330,7 @@ case $ARCH in ;; 'Darwin') - VERSION="${MAJOR}.${MINOR}.${TINY}" + VERSION="${MAJOR}.${MINOR}.${PATCH}" LIBNAME="lib${LIBNAME}.dylib" ARNAME="lib${LIBNAME}.dylib.a" echo "mklib: Making Darwin libraries: " ${LIBNAME} ${ARNAME} |