forked from M-Labs/nix-scripts
conda-windows: make binutils generic
This commit is contained in:
parent
b2e40e0594
commit
7838d6e683
|
@ -8,7 +8,7 @@ set CFLAGS=-I%PREFIX:\=/%/Library/include/
|
||||||
set LDFLAGS=-L%PREFIX:\=/%/Library/lib/
|
set LDFLAGS=-L%PREFIX:\=/%/Library/lib/
|
||||||
sh ../configure --build=%TRIPLE% ^
|
sh ../configure --build=%TRIPLE% ^
|
||||||
--prefix="%PREFIX:\=/%/Library" ^
|
--prefix="%PREFIX:\=/%/Library" ^
|
||||||
--target=or1k-linux
|
--target=##TARGET##
|
||||||
if errorlevel 1 exit 1
|
if errorlevel 1 exit 1
|
||||||
|
|
||||||
make -j4
|
make -j4
|
||||||
|
@ -18,4 +18,4 @@ make install
|
||||||
if errorlevel 1 exit 1
|
if errorlevel 1 exit 1
|
||||||
|
|
||||||
rem this is a copy of prefixed executables
|
rem this is a copy of prefixed executables
|
||||||
rmdir /S /Q %PREFIX%\Library\or1k-linux
|
rmdir /S /Q %PREFIX%\Library\##TARGET##
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package:
|
package:
|
||||||
name: binutils-or1k-linux
|
name: binutils-##TARGET##
|
||||||
version: 2.30
|
version: ##VERSION##
|
||||||
|
|
||||||
source:
|
source:
|
||||||
url: ../src.tar.bz2
|
url: ../src.tar.bz2
|
||||||
|
|
|
@ -31,11 +31,13 @@ let
|
||||||
${wfvm.utils.win-put}/bin/win-put ${vs2015_runtime-filename} ./fake-channel/win-64
|
${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"
|
${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 .
|
${wfvm.utils.win-put}/bin/win-put binutils .
|
||||||
tar xjf ${src}
|
tar xjf ${src}
|
||||||
patch -d binutils-2.30 -p1 < ${./binutils-hack-libiconv.patch}
|
patch -d binutils-${version} -p1 < ${./binutils-hack-libiconv.patch}
|
||||||
tar cjf src.tar.bz2 binutils-2.30
|
tar cjf src.tar.bz2 binutils-${version}
|
||||||
${wfvm.utils.win-put}/bin/win-put src.tar.bz2 .
|
${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"
|
${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"
|
||||||
|
|
Loading…
Reference in New Issue