Commit 5d21d02b authored by Jeremy Soller's avatar Jeremy Soller Committed by GitHub

Merge pull request #51 from Stephen-Seo/master

Fix newlib#78
parents d9524380 99b1e852
_target=x86_64-unknown-redox
pkgname=$_target-newlib-git
pkgver=r17719.dabd4bde6
pkgver=r17774.d5ac42a49
pkgrel=1
arch=(i686 x86_64)
license=(GPL)
source=("git+https://github.com/redox-os/newlib#branch=redox" "git+https://github.com/redox-os/rust")
md5sums=('SKIP' 'SKIP')
source=("git+https://github.com/redox-os/newlib#branch=redox")
md5sums=('SKIP')
makedepends=('git' 'rustup' $_target-binutils-git $_target-gcc-freestanding-git)
prepare() {
cd rust
git submodule update --init --recursive src/libcompiler_builtins src/liblibc
cd "$srcdir/newlib"
rustup override set nightly
rustup update nightly
rustup override set nightly-2018-03-26
rustup component add rust-src
rm -rf $srcdir/xargo
cargo install --root $srcdir/xargo xargo
......@@ -27,7 +24,7 @@ prepare() {
build() {
cd "$srcdir/newlib-build"
$srcdir/newlib/configure --target=$_target --prefix=/usr --enable-newlib-iconv
PATH=$srcdir/xargo/bin:$PATH XARGO_RUST_SRC="$srcdir/rust/src" make all
PATH=$srcdir/xargo/bin:$PATH make -j $(nproc) all
}
package() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment