summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_autoconf.py
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-11 08:08:44 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-11 02:30:39 +0200
commit72b8a0952a10c94aa0483a83bec9253b53a30e39 (patch)
tree0e4ef75d194f8e3a667489e02aa414382cc5fa80 /buildtools/wafsamba/samba_autoconf.py
parent031dee348dbbf1c4658a0488520bacc582c4fe29 (diff)
downloadsamba-72b8a0952a10c94aa0483a83bec9253b53a30e39.tar.gz
samba-72b8a0952a10c94aa0483a83bec9253b53a30e39.tar.bz2
samba-72b8a0952a10c94aa0483a83bec9253b53a30e39.zip
buildtools: Add --enable-debug option
Diffstat (limited to 'buildtools/wafsamba/samba_autoconf.py')
-rw-r--r--buildtools/wafsamba/samba_autoconf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py
index 2bb86c786c..08df2b3c2f 100644
--- a/buildtools/wafsamba/samba_autoconf.py
+++ b/buildtools/wafsamba/samba_autoconf.py
@@ -599,6 +599,10 @@ def SAMBA_CONFIG_H(conf, path=None):
if not IN_LAUNCH_DIR(conf):
return
+ if Options.options.debug:
+ conf.ADD_CFLAGS('-g',
+ testflags=True)
+
if Options.options.developer:
# we add these here to ensure that -Wstrict-prototypes is not set during configure
conf.ADD_CFLAGS('-Wall -g -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-align -Wwrite-strings -Werror-implicit-function-declaration -Wformat=2 -Wno-format-y2k -Wmissing-prototypes -fno-common',