Last active
July 8, 2016 12:37
-
-
Save l2dy/2ba8e4bbab155b8c8cae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tar xvzf protobuf-c-1.2.1.tar.gz | |
cd protobuf-c-1.2.1 | |
./configure --prefix=$STAGING_DIR --build=x86_64-unknown-linux-gnu --host=mipsel-openwrt-linux-musl --disable-protoc | |
make install | |
cd .. | |
tar xvzf libconfig-1.5.tar.gz | |
cd libconfig-1.5 | |
./configure --prefix=$STAGING_DIR --build=x86_64-unknown-linux-gnu --host=mipsel-openwrt-linux-musl | |
make install | |
cd .. | |
tar xvzf mbedtls-2.2.1-apache.tgz | |
cd mbedtls-2.2.1 | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=$STAGING_DIR -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=mipsel-openwrt-linux-musl-gcc -DUSE_STATIC_MBEDTLS_LIBRARY=OFF -DUSE_SHARED_MBEDTLS_LIBRARY=ON .. | |
make install | |
cd ../.. | |
cd umurmur | |
mkdir build | |
cd build | |
cmake -DCMAKE_INSTALL_PREFIX=$STAGING_DIR -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=mipsel-openwrt-linux-musl-gcc -DSSL=mbedtls .. | |
make |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment