This repository has been archived by the owner. It is now read-only.
Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up
Find file
Copy path
Fetching contributors…
| #!/bin/sh | |
| set -ex | |
| # Support building MUSL | |
| curl http://www.musl-libc.org/releases/musl-1.1.11.tar.gz | tar xzf - | |
| cd musl-1.1.11 | |
| ./configure --prefix=/musl --disable-shared | |
| make -j10 | |
| make install | |
| cd .. | |
| # To build MUSL we're going to need a libunwind lying around, so acquire that | |
| # here and build it. | |
| curl http://llvm.org/releases/3.7.0/llvm-3.7.0.src.tar.xz | tar xJf - | |
| curl http://llvm.org/releases/3.7.0/libunwind-3.7.0.src.tar.xz | tar xJf - | |
| mkdir libunwind-build | |
| cd libunwind-build | |
| cmake ../libunwind-3.7.0.src -DLLVM_PATH=/build/llvm-3.7.0.src \ | |
| -DLIBUNWIND_ENABLE_SHARED=0 | |
| make -j10 | |
| cp lib/libunwind.a /musl/lib |