diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:25:57 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-10-04 12:25:57 +0200 |
| commit | d865103a732773ec53bd114d382f4e9a2ce6400a (patch) | |
| tree | d7c97cf208c9f59273ae65926f8b03182eb38cae /build.sh | |
| parent | b3c9ba0868fd1180320ec17ec496a46cb4f808e1 (diff) | |
| parent | 3abee20196f1eae58268b5eebb85d952ebc78200 (diff) | |
| download | monzero-gui-d865103a732773ec53bd114d382f4e9a2ce6400a.tar.gz monzero-gui-d865103a732773ec53bd114d382f4e9a2ce6400a.tar.xz monzero-gui-d865103a732773ec53bd114d382f4e9a2ce6400a.zip | |
Merge pull request #30
3abee20 build: get_platform function reused (Ilya Kitaev)
af30cfd build: added "libunwind_off" config option so it can be built on other distros than Ubuntu (Ilya Kitaev)
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 |
