code: def generate(env):
      
      link.generate(env)
      
      env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -G')
  
      env['RPATHPREFIX'] = '-R'
      env['RPATHSUFFIX'] = ''
      env['_RPATH'] = '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}'
  
      # Support for versioned libraries
      link._setup_versioned_lib_variables(env, tool = 'sunlink', use_soname = True) 
      env['LINKCALLBACKS'] = link._versioned_lib_callbacks()
docs: Add Builders and construction variables for Forte to an Environment.