simplify .a suffixing
authorBrian <brian@yutani.localnet.net>
Tue, 27 Mar 2007 13:58:47 +0000 (07:58 -0600)
committerBrian <brian@yutani.localnet.net>
Tue, 27 Mar 2007 13:58:47 +0000 (07:58 -0600)
bin/mklib

index 2ecabdddfcb08d3e283c3e884a8ac5251da0ccd2..09f4fac9e5119b8151a09b75e5ec04156e8ede2b 100755 (executable)
--- a/bin/mklib
+++ b/bin/mklib
@@ -212,16 +212,16 @@ case $ARCH in
             # finish up
             FINAL_LIBS="${LIBNAME}"
         elif [ $STATIC = 1 ] ; then
-           LIBNAME="lib${LIBNAME}"     # prefix with "lib"
-            echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a
+            LIBNAME="lib${LIBNAME}.a"     # prefix with "lib", suffix with ".a"
+            echo "mklib: Making" $ARCH "static library: " ${LIBNAME}
             LINK="ar"
             OPTS="-ru"
-            rm -f ${LIBNAME}.a
+            rm -f ${LIBNAME}
             # make lib
-            ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
-           ranlib ${LIBNAME}.a
+            ${LINK} ${OPTS} ${LIBNAME} ${OBJECTS}
+            ranlib ${LIBNAME}
             # finish up
-            FINAL_LIBS=${LIBNAME}.a
+            FINAL_LIBS=${LIBNAME}
         else
            LIBNAME="lib${LIBNAME}"     # prefix with "lib"
            case $ARCH in 'Linux' | 'GNU' | GNU/*)