summaryrefslogtreecommitdiff
path: root/5-build-newlib.sh
diff options
context:
space:
mode:
Diffstat (limited to '5-build-newlib.sh')
-rw-r--r--5-build-newlib.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/5-build-newlib.sh b/5-build-newlib.sh
new file mode 100644
index 0000000..f4f6d50
--- /dev/null
+++ b/5-build-newlib.sh
@@ -0,0 +1,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"