[rtems-tools commit] tester/covoar: Use standard waf modules for linking.

Chris Johns chrisj at rtems.org
Fri Oct 13 16:34:20 UTC 2017


Module:    rtems-tools
Branch:    master
Commit:    0054585256208db81a0660f439321afbe2b42df0
Changeset: http://git.rtems.org/rtems-tools/commit/?id=0054585256208db81a0660f439321afbe2b42df0

Author:    Chris Johns <chrisj at rtems.org>
Date:      Fri Oct 13 09:31:47 2017 -0700

tester/covoar: Use standard waf modules for linking.

Use the standard modules `use` option for building executables and
let waf figure out the platform specifics.

Closes #3190.

---

 tester/covoar/wscript | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/tester/covoar/wscript b/tester/covoar/wscript
index 392acd1..9db4815 100644
--- a/tester/covoar/wscript
+++ b/tester/covoar/wscript
@@ -57,8 +57,6 @@ def configure(conf):
     conf.check_cc(function_name='open64', header_name="stdlib.h", mandatory = False)
     conf.check_cc(function_name='stat64', header_name="stdlib.h", mandatory = False)
     conf.write_config_header('covoar-config.h')
-    conf.env.STLIBPATH_RLD = conf.path.abspath() + '/../../build/rtemstoolkit'
-    conf.env.STLIB_RLD = ['rld','iberty','elf']
 
 def build(bld):
     rtemstoolkit = '../../rtemstoolkit'
@@ -69,6 +67,11 @@ def build(bld):
     if bld.env.DEST_OS == 'win32':
         rtl_includes += [rtemstoolkit + '/win32']
 
+    #
+    # The list of modules.
+    #
+    modules = ['rld', 'elf', 'iberty']
+
     bld.stlib(target = 'ccovoar',
               source = ['app_common.cc',
                         'CoverageFactory.cc',
@@ -113,12 +116,12 @@ def build(bld):
                           'TraceReaderLogQEMU.cc',
                           'TraceWriterBase.cc',
                           'TraceWriterQEMU.cc'],
-                use = ['ccovoar','RLD'],
+                use = ['ccovoar'] + modules,
                 cflags = ['-O2', '-g'],
                 includes = ['.'] + rtl_includes)
 
     bld.program(target = 'covoar',
                 source = ['covoar.cc'],
-                use = ['ccovoar','RLD'],
+                use = ['ccovoar'] + modules,
                 cflags = ['-O2', '-g'],
                 includes = ['.'] + rtl_includes)



More information about the vc mailing list