summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Špaček2022-01-26 11:16:22 +0100
committerPetr Špaček2022-01-26 11:26:54 +0100
commita8df3ef9cb4e2418abc9dd22d31b5c7128bd96b7 (patch)
tree0f95f5914dee9c195ea1df62b49299e5af096def
parent810da1693853108411ed9e7623412107dd95510d (diff)
downloadaur-a8df3ef9cb4e2418abc9dd22d31b5c7128bd96b7.tar.gz
enable debug info build
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index faedf41df6a7..a4be3e01dfe2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -25,6 +25,7 @@ pkgbase = unbound-git
provides = unbound
provides = libunbound.so
conflicts = unbound
+ options = debug
backup = etc/unbound/unbound.conf
source = git+https://github.com/NLnetLabs/unbound.git#branch=master
source = unbound-1.14.0-trust_anchor_file.patch
diff --git a/PKGBUILD b/PKGBUILD
index 9b38d5f7cfc4..2de65a8f069a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,6 +15,7 @@ optdepends=(
'sh: for unbound-control-setup'
'python: for python-bindings'
)
+options=(debug)
conflicts=(unbound)
provides=(unbound libunbound.so)
backup=(etc/${basen}/${basen}.conf)
@@ -70,7 +71,8 @@ build() {
--with-rootkey-file=/etc/trusted-key.key \
--with-libevent \
--with-libnghttp2 \
- --with-pyunbound
+ --with-pyunbound \
+ --enable-debug
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}