summaryrefslogtreecommitdiffstats
path: root/autowaf.py
diff options
context:
space:
mode:
Diffstat (limited to 'autowaf.py')
-rw-r--r--autowaf.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/autowaf.py b/autowaf.py
index 929a58d..617794a 100644
--- a/autowaf.py
+++ b/autowaf.py
@@ -453,9 +453,11 @@ def run_tests(ctx, appname, tests):
os.chdir(orig_dir)
-def shutdown():
- # This isn't really correct (for packaging), but people asking is annoying
- if 'install' in Options.commands:
- try: os.popen("/sbin/ldconfig")
- except: pass
+def run_ldconfig(ctx):
+ if ctx.cmd == 'install':
+ print 'Running /sbin/ldconfig'
+ try:
+ os.popen("/sbin/ldconfig")
+ except:
+ print >> sys.stderr, 'Error running ldconfig, libraries may not be linkable'