From 6d268e4a826de46d3397741cd81cb2790d378587 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 26 Mar 2010 13:20:05 +1100 Subject: build: improved exception handling for systems without rpath --- buildtools/wafsamba/samba_conftests.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'buildtools/wafsamba/samba_conftests.py') diff --git a/buildtools/wafsamba/samba_conftests.py b/buildtools/wafsamba/samba_conftests.py index af7e0c0481..742959db84 100644 --- a/buildtools/wafsamba/samba_conftests.py +++ b/buildtools/wafsamba/samba_conftests.py @@ -140,18 +140,13 @@ def CHECK_RPATH_SUPPORT(conf): # compile the program try: bld.compile() - except Utils.WafError: - ret = Utils.ex_stack() - else: - ret = 0 + except: + conf.check_message('rpath support', '', False) + return False # chdir before returning os.chdir(back) - if ret: - conf.log.write('command returned %r' % ret) - conf.fatal(str(ret)) - # path for execution lastprog = o.link_task.outputs[0].abspath(env) -- cgit