summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2012-09-23 17:06:34 +1000
committerAllan McRae <allan@archlinux.org>2012-11-27 15:16:15 +1000
commit6c22ef2c8287ef16f57fba08077520ad0c68dff8 (patch)
tree4cb4e729d613f7178510e5757b0113274e777214 /etc
parent7199fb3b1aab6ec36e56af8a3ab1949c7510c767 (diff)
downloadpacman-6c22ef2c8287ef16f57fba08077520ad0c68dff8.tar.xz
makepkg: add option to include debugging compiler flags
Add a "debug" option that appends the compiler flags specified in the variables DEBUG_CFLAGS and DEBUG_CXXFLAGS in makepkg.conf to their counterpart buildflags. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'etc')
-rw-r--r--etc/makepkg.conf.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index dcec6f5c..0de85c95 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -33,6 +33,9 @@ CHOST="@CHOST@"
#LDFLAGS=""
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
+#-- Debugging flags
+#DEBUG_CFLAGS="-g"
+#DEBUG_CXXFLAGS="-g"
#########################################################################
# BUILD ENVIRONMENT
@@ -62,7 +65,7 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign)
# These are default values for the options=() settings
#########################################################################
#
-# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
+# Default: OPTIONS=(strip docs libtool emptydirs zipman purge !upx !debug)
# A negated option will do the opposite of the comments below.
#
#-- strip: Strip symbols from binaries/libraries
@@ -72,8 +75,9 @@ BUILDENV=(fakeroot !distcc color !ccache check !sign)
#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge: Remove files specified by PURGE_TARGETS
#-- upx: Compress binary executable files using UPX
+#-- debug: Add debugging flags as specified in DEBUG_* variables
#
-OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
+OPTIONS=(strip docs libtool emptydirs zipman purge !upx !debug)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)