From cfeaed22c5974fc9fd0349a28283a5ca94238dfe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 27 Mar 2010 09:46:07 +1100 Subject: build: these chdir() calls break waf on HPUX. They are not needed --- buildtools/wafsamba/samba_conftests.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'buildtools/wafsamba/samba_conftests.py') diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index ce86ce1221..8a9e3f5cd2 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -110,8 +110,6 @@ def CHECK_RPATH_SUPPORT(conf): dest.write('int main(void) {return !(lib_func() == 42);}\n') dest.close() - back = os.path.abspath('.') - bld = Build.BuildContext() bld.log = conf.log bld.all_envs.update(conf.all_envs) @@ -119,8 +117,6 @@ def CHECK_RPATH_SUPPORT(conf): bld.lst_variants = bld.all_envs.keys() bld.load_dirs(dir, bdir) - os.chdir(dir) - bld.rescan(bld.srcnode) bld(features='cc cshlib', @@ -141,9 +137,6 @@ def CHECK_RPATH_SUPPORT(conf): conf.check_message('rpath support', '', False) return False - # chdir before returning - os.chdir(back) - # path for execution lastprog = o.link_task.outputs[0].abspath(env) -- cgit