summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-05-18 06:19:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-05-18 06:19:18 +0000
commit529438949e2eda0fd98a0aa396c33098f0a2754e (patch)
tree916fa81e89fc07a116f447ac0453dab587708796 /abuild.in
parent7798ed0c5ad69a12c76c1778b8c9219e1117cf5b (diff)
downloadabuild-529438949e2eda0fd98a0aa396c33098f0a2754e.tar.gz
abuild-529438949e2eda0fd98a0aa396c33098f0a2754e.tar.bz2
abuild-529438949e2eda0fd98a0aa396c33098f0a2754e.tar.xz
abuild-529438949e2eda0fd98a0aa396c33098f0a2754e.zip
abuild: do debug builds with DEBUG=1
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index 8029647..439b4f5 100755
--- a/abuild.in
+++ b/abuild.in
@@ -1424,6 +1424,12 @@ if [ -n "$REPODEST" ]; then
export REPODEST
fi
+# if we want build debug package
+if [ -n "$DEBUG" ]; then
+ CFLAGS="$CFLAGS -g"
+ options="$options !strip"
+fi
+
# If we are handling a sub package then reset subpackages and install
if [ -n "$subpkgname" ]; then
origsubpackages="$subpackages"