diff options
author | redfish | 2016-08-29 00:04:45 -0400 |
---|---|---|
committer | redfish | 2016-08-29 00:04:45 -0400 |
commit | 8a022c08b1721ee81ffe0ed73d54693ce87fc37a (patch) | |
tree | 1a91c4f309762a2e5d4ba76714242a4fb705e34a | |
parent | 76d12ba6e36ef7c9bbbea94f2e3b28af9d8cb271 (diff) | |
download | aur-8a022c08b1721ee81ffe0ed73d54693ce87fc37a.tar.gz |
support debug build via an option
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -32,6 +32,9 @@ md5sums=('SKIP' backup=('etc/bitmonerod.conf') install=bitmonero.install +# Uncomment for a debug build +# options=(!strip debug) + pkgver() { cd "$srcdir/$_gitname" git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' @@ -40,7 +43,14 @@ pkgver() { build() { cd "$srcdir/$_gitname" - CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=Release " + if check_option "debug" "y" + then + _buildtype="Debug" + else + _buildtype+="Release" + fi + + CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=$_buildtype " CMAKE_FLAGS+=" -DBUILD_TESTS=ON " CMAKE_FLAGS+=" -Wno-dev " # silence warnings for devs CMAKE_FLAGS+=" -DCMAKE_LINKER=/usr/bin/ld.gold " # #974 ld segfault on ARM |