forked from Public/monero-gui
build: added "libunwind_off" config option so it can be built on other
distros than Ubuntu
This commit is contained in:
15
build.sh
15
build.sh
@@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ./utils.sh
|
||||
pushd $(pwd)
|
||||
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
MONERO_DIR=monero
|
||||
@@ -9,9 +10,19 @@ if [ ! -d $MONERO_DIR ]; then
|
||||
fi
|
||||
|
||||
if [ ! -d build ]; then mkdir build; fi
|
||||
cd build
|
||||
|
||||
qmake ../monero-core.pro "CONFIG+=release"
|
||||
CONFIG="CONFIG+=release"
|
||||
|
||||
platform=$(get_platform)
|
||||
if [ "$platform" == "linux" ]; then
|
||||
distro=$(lsb_release -is)
|
||||
if [ "$distro" == "Ubuntu" ]; then
|
||||
CONFIG="$CONFIG libunwind_off"
|
||||
fi
|
||||
fi
|
||||
|
||||
cd build
|
||||
qmake ../monero-core.pro "$CONFIG"
|
||||
make
|
||||
make deploy
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user