summaryrefslogtreecommitdiff
path: root/lib/replace/wscript
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-17 20:26:03 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:34 +1000
commit9a1cd09a10b475a2b18059a7ac6cb6915e9dfaf0 (patch)
tree08a0cc0eb8e23d6e16a2f530724b2577a590c282 /lib/replace/wscript
parent7723519cf7544382069c7f77f915ebe9fe236efe (diff)
downloadsamba-9a1cd09a10b475a2b18059a7ac6cb6915e9dfaf0.tar.gz
samba-9a1cd09a10b475a2b18059a7ac6cb6915e9dfaf0.tar.bz2
samba-9a1cd09a10b475a2b18059a7ac6cb6915e9dfaf0.zip
build: added ADD_CFLAGS() and started of Samba4 build
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r--lib/replace/wscript15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 04665a0ec1..d40843522c 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -14,9 +14,12 @@ def set_options(opt):
opt.add_option('--sbindir',
help=("system admin executables [PREFIX/sbin]"),
action="store", dest='SBINDIR', default=None)
- opt.add_option('--disable-rpath',
- help=("Disable use of rpath"),
- action="store_true", dest='disable_rpath', default=False)
+ opt.add_option('--enable-rpath',
+ help=("Enable use of rpath for installed binaries"),
+ action="store_true", dest='enable_rpath', default=False)
+ opt.add_option('--enable-developer',
+ help=("Turn on developer warnings and debugging"),
+ action="store_true", dest='developer', default=False)
@wafsamba.runonce
def configure(conf):
@@ -30,6 +33,12 @@ def configure(conf):
conf.CONFIG_PATH('SBINDIR', '/sbin')
conf.check_tool('compiler_cc')
+
+ if Options.options.developer:
+ conf.ADD_CFLAGS('-Wall -g -DDEVELOPER')
+
+ conf.env['RPATH_ON_INSTALL'] = Options.options.enable_rpath
+
conf.DEFUN('_GNU_SOURCE', 1)
conf.DEFUN('_XOPEN_SOURCE_EXTENDED', 1)
conf.DEFUN('LIBREPLACE_NETWORK_CHECKS', 1)