abuild: do debug builds with DEBUG=1

This commit is contained in:
Natanael Copa 2011-05-18 06:19:18 +00:00
parent 7798ed0c5a
commit 529438949e
1 changed files with 6 additions and 0 deletions

View File

@ -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"