mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
build: these chdir() calls break waf on HPUX. They are not needed
This commit is contained in:
parent
a247ce8ef9
commit
cfeaed22c5
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user