Changeset 0054585 in rtems-tools


Ignore:
Timestamp:
Oct 13, 2017, 4:31:47 PM (20 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
ac679ba
Parents:
b76fa74
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/covoar/wscript

    rb76fa74 r0054585  
    5858    conf.check_cc(function_name='stat64', header_name="stdlib.h", mandatory = False)
    5959    conf.write_config_header('covoar-config.h')
    60     conf.env.STLIBPATH_RLD = conf.path.abspath() + '/../../build/rtemstoolkit'
    61     conf.env.STLIB_RLD = ['rld','iberty','elf']
    6260
    6361def build(bld):
     
    6967    if bld.env.DEST_OS == 'win32':
    7068        rtl_includes += [rtemstoolkit + '/win32']
     69
     70    #
     71    # The list of modules.
     72    #
     73    modules = ['rld', 'elf', 'iberty']
    7174
    7275    bld.stlib(target = 'ccovoar',
     
    114117                          'TraceWriterBase.cc',
    115118                          'TraceWriterQEMU.cc'],
    116                 use = ['ccovoar','RLD'],
     119                use = ['ccovoar'] + modules,
    117120                cflags = ['-O2', '-g'],
    118121                includes = ['.'] + rtl_includes)
     
    120123    bld.program(target = 'covoar',
    121124                source = ['covoar.cc'],
    122                 use = ['ccovoar','RLD'],
     125                use = ['ccovoar'] + modules,
    123126                cflags = ['-O2', '-g'],
    124127                includes = ['.'] + rtl_includes)
Note: See TracChangeset for help on using the changeset viewer.