Delete old .a file before creating a new one.

This commit is contained in:
Jonathan Schleifer 2011-09-13 02:33:02 +02:00
parent ecbc8123b7
commit 73fcbc7356

View file

@ -227,6 +227,7 @@ ${STATIC_LIB} ${STATIC_LIB_NOINST}: ${EXT_DEPS} ${OBJS}
${STATIC_PIC_LIB} ${STATIC_PIC_LIB_NOINST}: ${EXT_DEPS} ${LIB_OBJS} ${STATIC_PIC_LIB} ${STATIC_PIC_LIB_NOINST}: ${EXT_DEPS} ${LIB_OBJS}
${LINK_STATUS} ${LINK_STATUS}
rm -f $@
if ${AR} cr $@ ${LIB_OBJS} && ${RANLIB} $@; then \ if ${AR} cr $@ ${LIB_OBJS} && ${RANLIB} $@; then \
${LINK_OK}; \ ${LINK_OK}; \
else \ else \