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."""
      createProgBuilder(env)
  
      setup_shared_lib_logic(env)
      setup_loadable_module_logic(env)
  
      env['SMARTLINK'] = smart_link
      env['LINK'] = "$SMARTLINK"
      env['LINKFLAGS'] = SCons.Util.CLVar('')
  
      # __RPATH is only set to something ($_RPATH typically) on platforms that support it.
      env['LINKCOM'] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS'
      env['LIBDIRPREFIX'] = '-L'
      env['LIBDIRSUFFIX'] = ''
      env['_LIBFLAGS'] = '${_stripixes(LIBLINKPREFIX, LIBS, LIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)}'
      env['LIBLINKPREFIX'] = '-l'
      env['LIBLINKSUFFIX'] = ''
function_tokens: def generate ( env ) : createProgBuilder ( env ) setup_shared_lib_logic ( env ) setup_loadable_module_logic ( env ) env [ 'SMARTLINK' ] = smart_link env [ 'LINK' ] = "$SMARTLINK" env [ 'LINKFLAGS' ] = SCons . Util . CLVar ( '' ) # __RPATH is only set to something ($_RPATH typically) on platforms that support it. env [ 'LINKCOM' ] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS $_LIBFLAGS' env [ 'LIBDIRPREFIX' ] = '-L' env [ 'LIBDIRSUFFIX' ] = '' env [ '_LIBFLAGS' ] = '${_stripixes(LIBLINKPREFIX, LIBS, LIBLINKSUFFIX, LIBPREFIXES, LIBSUFFIXES, __env__)}' env [ 'LIBLINKPREFIX' ] = '-l' env [ 'LIBLINKSUFFIX' ] = ''