3 # Thomas Nagy, 2011 (ita)
6 from waflib
.TaskGen
import after_method
, feature
8 @after_method('propagate_uselib_vars')
9 @feature('cprogram', 'cshlib', 'cxxprogram', 'cxxshlib', 'fcprogram', 'fcshlib')
10 def add_rpath_stuff(self
):
11 all
= copy
.copy(self
.to_list(getattr(self
, 'use', [])))
15 tg
= self
.bld
.get_tgen_by_name(name
)
18 if hasattr(tg
, 'link_task'):
19 self
.env
.append_value('RPATH', tg
.link_task
.outputs
[0].parent
.abspath())
20 all
.extend(self
.to_list(getattr(tg
, 'use', [])))