diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-20 23:29:59 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:33 +1000 |
commit | 34b77a15d36e21c67d5493e45955358589f7b9c5 (patch) | |
tree | 8db64919e8b9c8147b093ef6554e96bc7fd452dd /lib/replace/autoconf.py | |
parent | 9757da515d4f9927255cfa293974ec6fe3437aa4 (diff) | |
download | samba-34b77a15d36e21c67d5493e45955358589f7b9c5.tar.gz samba-34b77a15d36e21c67d5493e45955358589f7b9c5.tar.bz2 samba-34b77a15d36e21c67d5493e45955358589f7b9c5.zip |
build: updates to waf scripts for replace and talloc
Diffstat (limited to 'lib/replace/autoconf.py')
-rw-r--r-- | lib/replace/autoconf.py | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/replace/autoconf.py b/lib/replace/autoconf.py index cb7e7f0bc7..1b16ea35c3 100644 --- a/lib/replace/autoconf.py +++ b/lib/replace/autoconf.py @@ -39,8 +39,15 @@ def CHECK_FUNCS_IN(conf, list, library): for f in list.rsplit(' '): conf.check(function_name=f, lib=library, header_name=conf.env.hlist) -@conf -def check_rpath(conf): - # this should check if rpath works - conf.env.append_value('RPATH', '-Wl,-rpath=build/default') - +# we want a different rpath when installing and when building +# this should really check if rpath is available on this platform +# and it should also honor an --enable-rpath option +def set_rpath(bld): + import Options + if Options.is_install: + bld.env['RPATH'] = ['-Wl,-rpath=' + bld.env.PREFIX + '/lib'] + else: + bld.env.append_value('RPATH', '-Wl,-rpath=build/default') + +import Build +Build.BuildContext.set_rpath = set_rpath |