This patch prevents some weird hallucinations that happen when a
library is not completely rebuilt from scratch and still contains
old objects of files that have been removed from the project.

Yes, ar updates archives incrementally, and afaik there's no
way to prevent it other than deleting the archive beforehand.


diff --git a/bin/mklib b/bin/mklib
index 7d468b1..075c745 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -216,6 +216,8 @@ case $ARCH in
             echo "mklib: Making" $ARCH "static library: " ${LIBNAME}.a
             LINK="ar"
             OPTS="-ru"
+
+            rm -f ${LIBNAME}
             # make lib
             ${LINK} ${OPTS} ${LIBNAME}.a ${OBJECTS}
            ranlib ${LIBNAME}.a


-- 
   // Bernardo Innocenti - Develer R&D dept.
 \X/  http://www.develer.com/

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to