mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
09e282ec81
This is required to get the new test_args parameter to conf.check, which facilitates passing arguments to configuration test programs. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13846 Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
22 lines
594 B
Python
22 lines
594 B
Python
#! /usr/bin/env python
|
|
# encoding: utf-8
|
|
# Thomas Nagy, 2011 (ita)
|
|
|
|
import copy
|
|
from waflib.TaskGen import after_method, feature
|
|
|
|
@after_method('propagate_uselib_vars')
|
|
@feature('cprogram', 'cshlib', 'cxxprogram', 'cxxshlib', 'fcprogram', 'fcshlib')
|
|
def add_rpath_stuff(self):
|
|
all = copy.copy(self.to_list(getattr(self, 'use', [])))
|
|
while all:
|
|
name = all.pop()
|
|
try:
|
|
tg = self.bld.get_tgen_by_name(name)
|
|
except:
|
|
continue
|
|
if hasattr(tg, 'link_task'):
|
|
self.env.append_value('RPATH', tg.link_task.outputs[0].parent.abspath())
|
|
all.extend(self.to_list(getattr(tg, 'use', [])))
|
|
|