diff --git a/scripts/host-build-all.sh b/scripts/host-build-all.sh index 9544802f8..392c681f7 100755 --- a/scripts/host-build-all.sh +++ b/scripts/host-build-all.sh @@ -3,30 +3,8 @@ # fail on any errors set -e -# parse the args -for args in $@ -do - if [[ "$args" == "-l" ]] - then - BUILD_LOCAL=1 - fi -done - -# run autogen.sh -./autogen.sh - -pwd=`pwd` - -# Build library for host platform architecture -if [[ "x$BUILD_LOCAL" == "x" ]] -then - ./configure --with-arch=host --enable-library=yes --host=x86_64-unknown-linux-gnu -else - # make sure host lib is build in local folder - echo "BUILD in local folder!" - rm -rf $pwd/local/ - ./configure --with-arch=host --enable-library=yes --host=x86_64-unknown-linux-gnu --prefix=$pwd/host-lib -fi - -make +mkdir build_host +cd build_host +cmake -DBUILD_HOST=ON -DCMAKE_INSTALL_PREFIX=install .. +make -j4 make install