blob: 0560f3b0fa49ab8e7d0e8b68afcbb73f4c7b2d0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/env bash
set -e
PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH
mkdir -p /toolchain/newlib/.build && cd /toolchain/newlib
tar xf /downloads/newlib-$NEWLIB_VERSION.tar.gz
cd .build
LDFLAGS=-mno-red-zone ../newlib-$NEWLIB_VERSION/configure \
--disable-newlib-fseek-optimization \
--disable-newlib-io-float \
--disable-newlib-supplied-syscalls \
--disable-nls \
--disable-werror \
--prefix=/opt/toolchain \
--target=$TARGET
make -j$(nproc)
make install
|