"
"  Directives for binding osf$job_template_2dd 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=pmm$job_template_trap_handler
    delete_module m=pmm$preset_conversion_table
    delete_module m=pmm$tasking_helper_procedures
    generate_library l=$fname(scratch_library)

    add_module l=$fname(unbound_library) m=pmm$job_template_trap_handler
    add_module l=$fname(unbound_library) m=pmm$preset_conversion_table
    add_module l=$fname(unbound_library) m=pmm$tasking_helper_procedures
    create_module n=bound_job_template_2dd c=$fname(scratch_library) include_binary_section_maps=TRUE
    change_module_attributes m=bound_job_template_2dd 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
