build: improved exception handling for systems without rpath
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2010 02:20:05 +0000 (13:20 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:27:07 +0000 (20:27 +1000)
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)