diff options
author | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2018-05-02 11:25:18 +0200 |
---|---|---|
committer | Christian Mauderer <christian.mauderer@embedded-brains.de> | 2018-05-04 07:15:36 +0200 |
commit | dd35ec5cd75e955f50fba3cd1c614d54eec0d1c4 (patch) | |
tree | e6b868441fcedfa73c290d0816a60d31ecbe6fcb /waf_libbsd.py | |
parent | pfctl: Undef INET6 to avoid warning. (diff) | |
download | rtems-libbsd-dd35ec5cd75e955f50fba3cd1c614d54eec0d1c4.tar.bz2 |
waf: Allow to add libs per test.
Update #3419.
Diffstat (limited to 'waf_libbsd.py')
-rw-r--r-- | waf_libbsd.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/waf_libbsd.py b/waf_libbsd.py index 1f498aa3..0972cf2c 100644 --- a/waf_libbsd.py +++ b/waf_libbsd.py @@ -496,6 +496,7 @@ class Builder(builder.ModuleManager): for testName in sorted(tests): test = self.data['tests'][testName]['all'] test_source = [] + libs = ['bsd', 'm', 'z'] for cfg in test: build_test = True if cfg != 'default': @@ -506,6 +507,7 @@ class Builder(builder.ModuleManager): if build_test: test_sources = ['testsuite/%s/%s.c' % (testName, f) \ for f in test[cfg]['files']] + libs = test[cfg]['libs'] + libs if build_test: bld.program(target = '%s.exe' % (testName), features = 'cprogram', @@ -513,5 +515,5 @@ class Builder(builder.ModuleManager): includes = includes, source = test_sources, use = ['bsd'], - lib = ['ftpfs', 'ftpd', 'telnetd', 'bsd', 'm', 'z'], + lib = libs, install_path = None) |