Mail archive
alpine-devel

[alpine-devel] [abuild RFC] abuild: add config option to globally enable dbg

From: Carlo Landmeter <clandmeter_at_gmail.com>
Date: Fri, 16 Jun 2017 11:41:40 +0200

---
 abuild.in | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/abuild.in b/abuild.in
index 1db1a4a..ff37162 100644
--- a/abuild.in
+++ b/abuild.in
_at_@ -2317,6 +2317,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"
-- 
2.13.1
---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Fri Jun 16 2017 - 11:41:40 GMT