delete .a files before adding to them with ar
authorEvan Martin <martine@danga.com>
Wed, 14 Sep 2011 19:08:02 +0000 (12:08 -0700)
committerEvan Martin <martine@danga.com>
Wed, 14 Sep 2011 19:08:02 +0000 (12:08 -0700)
ar doesn't have a mode to just rebuild the file from scratch, so delete
it manually.

Fixes issue #105.

configure.py

index 846fe35..a9479bf 100755 (executable)
@@ -113,7 +113,7 @@ ar = 'ar'
 if platform == 'mingw':
     ar = 'i586-mingw32msvc-ar'
 n.rule('ar',
-       command=ar + ' crs $out $in',
+       command='rm -f $out && %s crs $out $in' % ar,
        description='AR $out')
 n.newline()