parameters: (env)
docstring: Add Builders and construction variables for gnulink to an Environment.
docstring_summary: Add Builders and construction variables for gnulink to an Environment.
docstring_tokens: Add Builders and construction variables for gnulink to an Environment .
function: def generate(env):
      """Add Builders and construction variables for gnulink to an Environment."""
      link.generate(env)
  
      if env['PLATFORM'] == 'hpux':
          env['SHLINKFLAGS'] = SCons.Util.CLVar('$LINKFLAGS -shared -fPIC')
  
      # __RPATH is set to $_RPATH in the platform specification if that
      # platform supports it.
      env['RPATHPREFIX'] = '-Wl,-rpath='
      env['RPATHSUFFIX'] = ''
      env['_RPATH'] = '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}'
function_tokens: def generate ( env ) : link . generate ( env ) if env [ 'PLATFORM' ] == 'hpux' : env [ 'SHLINKFLAGS' ] = SCons . Util . CLVar ( '$LINKFLAGS -shared -fPIC' ) # __RPATH is set to $_RPATH in the platform specification if that # platform supports it. env [ 'RPATHPREFIX' ] = '-Wl,-rpath=' env [ 'RPATHSUFFIX' ] = '' env [ '_RPATH' ] = '${_concat(RPATHPREFIX, RPATH, RPATHSUFFIX, __env__)}'