From 7a534dcab1db680319643cdcf3f97eb98231ba68 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 14 Sep 2005 02:18:09 +0000 Subject: [PATCH] remove .a file before creating new one --- bin/mklib | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/mklib b/bin/mklib index b825f62df34..c754373e833 100755 --- a/bin/mklib +++ b/bin/mklib @@ -209,10 +209,8 @@ case $ARCH in elif [ $STATIC = 1 ] ; then LIBNAME="lib${LIBNAME}" # prefix with "lib" echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a - LINK="ar" - OPTS="-ru" - # make lib - ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS} + rm -f ${LIBNAME}.a + ar -ru ${LIBNAME}.a ${OBJECTS} ranlib ${LIBNAME}.a # finish up FINAL_LIBS=${LIBNAME}.a @@ -415,6 +413,7 @@ case $ARCH in if [ $STATIC = 1 ] ; then LIBNAME="lib${LIBNAME}.a" echo "mklib: Making AIX static library: " ${LIBNAME} + rm -f ${LIBNAME} ar -ruv ${X64} ${LIBNAME} ${OBJECTS} FINAL_LIBS=${LIBNAME} else -- 2.30.2