summaryrefslogtreecommitdiff
path: root/5-build-newlib.sh
blob: f4f6d504f5f0ee2e06b908dc7041d41ae55f2765 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
set -e
source ./common
export PATH="$prefix_dir/bin:${PATH:+:${PATH}}"

mkdir -p build/newlib-$newlib_ver
cd build/newlib-$newlib_ver
echo "Configuring newlib-${newlib_ver}"
../../unpacked/newlib-$newlib_ver/configure --prefix=$prefix_dir --target=$target >configure.log 2>&1
if [ ! $? ]; then less configure.log; exit; fi
echo "Building newlib-$newlib_ver"
make -j10 >build.log 2>&1
if [ ! $? ]; then less build.log; exit; fi
echo "Installing newlib-$newlib_ver"
make install >install.log 2>&1
if [ ! $? ]; then less install.log; exit; fi
echo "Done with newlib-$newlib_ver"