diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-14 02:18:09 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2005-09-14 02:18:09 +0000 |
commit | 7a534dcab1db680319643cdcf3f97eb98231ba68 (patch) | |
tree | 35726402ac7892e6f3bc1e7e4ac5f96b617a729f /bin | |
parent | 41cf68b4cb493444e38e84409e54f258ec751784 (diff) |
remove .a file before creating new one
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mklib | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |