1
0
Fork 0

conda-windows: make binutils generic

This commit is contained in:
Sebastien Bourdeauducq 2020-06-22 12:57:29 +08:00
parent b2e40e0594
commit 7838d6e683
3 changed files with 9 additions and 7 deletions

View File

@ -8,7 +8,7 @@ set CFLAGS=-I%PREFIX:\=/%/Library/include/
set LDFLAGS=-L%PREFIX:\=/%/Library/lib/
sh ../configure --build=%TRIPLE% ^
--prefix="%PREFIX:\=/%/Library" ^
--target=or1k-linux
--target=##TARGET##
if errorlevel 1 exit 1
make -j4
@ -18,4 +18,4 @@ make install
if errorlevel 1 exit 1
rem this is a copy of prefixed executables
rmdir /S /Q %PREFIX%\Library\or1k-linux
rmdir /S /Q %PREFIX%\Library\##TARGET##

View File

@ -1,6 +1,6 @@
package:
name: binutils-or1k-linux
version: 2.30
name: binutils-##TARGET##
version: ##VERSION##
source:
url: ../src.tar.bz2

View File

@ -31,11 +31,13 @@ let
${wfvm.utils.win-put}/bin/win-put ${vs2015_runtime-filename} ./fake-channel/win-64
${wfvm.utils.win-exec}/bin/win-exec ".\Anaconda3\scripts\activate && conda index fake-channel"
ln -s ${./binutils-recipe} binutils
cp --no-preserve=mode,ownership -R ${./binutils-recipe} binutils
sed -i s/##TARGET##/${target}/g binutils/*
sed -i s/##VERSION##/${version}/g binutils/*
${wfvm.utils.win-put}/bin/win-put binutils .
tar xjf ${src}
patch -d binutils-2.30 -p1 < ${./binutils-hack-libiconv.patch}
tar cjf src.tar.bz2 binutils-2.30
patch -d binutils-${version} -p1 < ${./binutils-hack-libiconv.patch}
tar cjf src.tar.bz2 binutils-${version}
${wfvm.utils.win-put}/bin/win-put src.tar.bz2 .
${wfvm.utils.win-exec}/bin/win-exec "set MSYS=C:\MSYS64 && set PATH=%MSYS%\usr\bin;%MSYS%\mingw64\bin;%PATH% && .\Anaconda3\scripts\activate && conda build --no-anaconda-upload --no-test -c file:///C:/users/wfvm/fake-channel --override-channels binutils"