summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-06-16 09:40:43 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-06-27 08:06:45 +0200
commit9605ce179269947772668320851377fa3e15ddc6 (patch)
tree5aa07936adfd229de75d59456f32b567b6384b16
parent610bf6c281abd285d79457b00185e17f202718d6 (diff)
downloadabuild-9605ce179269947772668320851377fa3e15ddc6.tar.gz
abuild-9605ce179269947772668320851377fa3e15ddc6.tar.bz2
abuild-9605ce179269947772668320851377fa3e15ddc6.tar.xz
abuild-9605ce179269947772668320851377fa3e15ddc6.zip
abuild: add config option to globally enable dbg
-rw-r--r--abuild.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 96f5a43..2a264fc 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2326,6 +2326,11 @@ fi
# for recursive action
export REPODEST SRCDEST
+# add dbg subpackage if its enabled globally
+if [ -n "$DEFAULT_DBG" ] && ! subpackage_types_has "dbg" && ! options_has "!dbg" && [ "$arch" != "noarch" ]; then
+ subpackages="$pkgname-dbg $subpackages"
+fi
+
# if we want build debug package
if [ -n "$DEBUG" ] || subpackage_types_has "dbg"; then
CFLAGS="$CFLAGS -g"