aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-09-22 21:39:43 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-09-22 21:39:43 +0300
commitaf30cfdd6ef9f2b44a1ab9aa8b410ca3a98e298e (patch)
treebe1cdedbe92059fe32c301fd784eaf622830f6e6 /build.sh
parent778695b188499da252eeba4649e7d0951d938635 (diff)
downloadmonzero-gui-af30cfdd6ef9f2b44a1ab9aa8b410ca3a98e298e.tar.gz
monzero-gui-af30cfdd6ef9f2b44a1ab9aa8b410ca3a98e298e.tar.xz
monzero-gui-af30cfdd6ef9f2b44a1ab9aa8b410ca3a98e298e.zip
build: added "libunwind_off" config option so it can be built on other
distros than Ubuntu
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index 347f5aaa..a8c2a2c3 100755
--- a/build.sh
+++ b/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