1
0
Fork 0

windows/binutils: change to --build=x86_64-w64-mingw32

This commit is contained in:
Astro 2020-07-24 09:33:49 +08:00
parent d86ea71a76
commit 89d700a796
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ let
set MSYS=c:\msys64 set MSYS=c:\msys64
set PATH=%MSYS%\usr\bin;%MSYS%\mingw64\bin;%PATH% set PATH=%MSYS%\usr\bin;%MSYS%\mingw64\bin;%PATH%
tar xjf src.tar.bz2 tar xjf src.tar.bz2
bash -c "cd binutils-${version} && ./configure --build=x86_64-pc-mingw64 --prefix=${prefix}/Library --target=${target} && make -j$NIX_BUILD_CORES && make install" bash -c "cd binutils-${version} && ./configure --build=x86_64-w64-mingw32 --prefix=${prefix}/Library --target=${target} && make -j$NIX_BUILD_CORES && make install"
rm -r ${prefix}/Library/or1k-linux rm -r ${prefix}/Library/or1k-linux
cp %MSYS%/mingw64/bin/libiconv-2.dll ${prefix}/Library/bin/ cp %MSYS%/mingw64/bin/libiconv-2.dll ${prefix}/Library/bin/
tar cjf ${outName} -C ${prefix} . tar cjf ${outName} -C ${prefix} .