build: these chdir() calls break waf on HPUX. They are not needed
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2010 22:46:07 +0000 (09:46 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:08 +0000 (20:27 +1000)
buildtools/wafsamba/samba_conftests.py

index ce86ce1221f4d1c9812c5d70011d51e70f9c8344..8a9e3f5cd2d384c482c9128d18316568c3098c36 100644 (file)
@@ -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)