build: improved exception handling for systems without rpath
[nivanova/samba-autobuild/.git] / buildtools / wafsamba / samba_conftests.py
index af7e0c048186249e66d750159fde044ebcdb8fc2..742959db84dc92933b260782442b00f1d0f62253 100644 (file)
@@ -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)