Alien-TinyCCx
view release on metacpan or search on metacpan
inc/My/Build/Linux.pm view on Meta::CPAN
$self->my_clean;
# Get the system-specific make command
my $make = $self->make_command;
# move into the source directory and perform configure, make, and install
chdir 'src';
# Add -fPIC if it's in our Perl Config's cccdlflags
use Config;
$ENV{CFLAGS} = '' unless $ENV{CFLAGS}; # Avoid undef warnings
$ENV{CFLAGS} .= ' -fPIC'
if $Config{cccdlflags} =~ /-fPIC/ and $ENV{CFLAGS} !~ /-fPIC/;
$ENV{CFLAGS} .= ' -fpic'
if $Config{cccdlflags} =~ /-fpic/ and $ENV{CFLAGS} !~ /-fpic/;
# clean followed by a normal incantation
my $extra_args = $self->extra_config_args;
system("./configure --prefix=$prefix $extra_args")
and die 'tcc build failed at ./configure';
system($make)
and die 'tcc build failed at make';
system($make, 'install')
and die 'tcc build failed at make install';
( run in 0.746 second using v1.01-cache-2.11-cpan-8d75d55dd25 )