The Perl Advent Calendar needs more articles for 2022. Submit your idea today!

Name

SPVM::Builder::LinkInfo - Object file information

Description

SPVM::Builder::LinkInfo is a object file information. This infromation is used by the linker.

Field Methods

Fields of SPVM::Builder::LinkInfo.

output_file

  my $output_file = $link_info->output_file;
  $link_info->output_file($output_file);

Get and set the object file that is compiled.

ld

  my $ld = $link_info->ld;
  $link_info->ld($ld);

Get and set the linker name.

ldflags

  my $ldflags = $object_file_info->ldflags;
  $object_file_info->ldflags($ldflags);

Get and set the linker flags. The default value is [].

object_file_infos

  my $object_file_infos = $link_info->object_file_infos;
  $link_info->object_file_infos($object_file_infos);

Get and set the object file informations to be linked. Each object file is a SPVM::Builder::ObjectFileInfo object.

lib_infos

  my $lib_infos = $link_info->lib_infos;
  $link_info->lib_infos($lib_infos);

Get and set the library informations to be linked. Each object file is a SPVM::Builder::LibInfo object.

class_name

  my $class_name = $link_info->class_name;
  $link_info->class_name($class_name);

Get and set the class name.

config

  my $config = $link_info->config;
  $link_info->config($config);

Get and set the config that is used to link the objects.

Methods

Methods of SPVM::Builder::LinkInfo.

new

  my $link_info = SPVM::Builder::LinkInfo->new;