"
"  Directives for binding osf$monitor library.  The unbound library
"  is on file 'unbound_library', file 'scratch_library' is used for an
"  intermediate result and 'bound_library' is where the bound library
"  is written.  These varibles must be defined in the procedure that
"  invokes these linker commands.
"
"  These directives are invoked by the 'bind_os_library' procedure.
"

    add_module l=$fname(unbound_library)
    delete_module m=mtm$monitor_interrupt_handler
    delete_module m=mmm$memory_manager_helper
    delete_module m=osm$intrinsics
    generate_library l=$fname(scratch_library)

    add_module l=$fname(unbound_library) m=mtm$monitor_interrupt_handler
    add_module l=$fname(unbound_library) m=mmm$memory_manager_helper
    add_module l=$fname(unbound_library) m=osm$intrinsics
    create_module n=bound_monitor c=$fname(scratch_library) include_binary_section_maps=TRUE
    change_module_attributes m=bound_monitor retain=all

"  Put a status variable on the following generate_library l=so that any
"  warning-level linker errors will be able to pass back to bind_os_library the fact
"  that there were internal errors on this library.
    generate_library l=$fname(bound_library) status=bind_status
