Skip to content

Commit

Permalink
use proper ar and ranlib command for mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
droundy committed Jun 25, 2016
1 parent 1a01789 commit 1e8e7a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def compile32(cfile):
except:
pass

cmd = ['x86_64-w64-mingw32-ar', 'rc', 'libbigbro-windows.a'] + [c[:-1]+'obj' for c in libraryfiles]
cmd = ['x86_64-w64-mingw32-gcc-ar', 'rc', 'libbigbro-windows.a'] + [c[:-1]+'obj' for c in libraryfiles]
print(' '.join(cmd))
assert(not subprocess.call(cmd))

cmd = ['x86_64-w64-mingw32-ranlib', 'libbigbro-windows.a']
cmd = ['x86_64-w64-mingw32-gcc-ranlib', 'libbigbro-windows.a']
print(' '.join(cmd))
assert(not subprocess.call(cmd))

Expand Down
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def is_exe(fpath):
# We need to remove libbigbro.a before running ar, because otherwise
# it will be added to, rather than replaced.
| rm -f libbigbro-windows.a && x86_64-w64-mingw32-ar rc libbigbro-windows.a %s && x86_64-w64-mingw32-ranlib libbigbro-windows.a
| rm -f libbigbro-windows.a && x86_64-w64-mingw32-gcc-ar rc libbigbro-windows.a %s && x86_64-w64-mingw32-gcc-ranlib libbigbro-windows.a
> libbigbro-windows.a
""" % (' '.join([c[:-1]+'obj' for c in winlibraryfiles])))
for c in winlibraryfiles:
Expand Down

0 comments on commit 1e8e7a4

Please sign in to comment.