view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Alien/Build/Plugin/Build/SearchDep.pm view on Meta::CPAN
$meta->around_hook(
build => sub {
my($orig, $build) = @_;
local $ENV{CFLAGS} = $ENV{CFLAGS};
local $ENV{CXXFLAGS} = $ENV{CXXFLAGS};
local $ENV{LDFLAGS} = $ENV{LDFLAGS};
tie my @CFLAGS, 'Env::ShellWords', 'CFLAGS';
tie my @CXXFLAGS, 'Env::ShellWords', 'CXXFLAGS';
tie my @LDFLAGS, 'Env::ShellWords', 'LDFLAGS';
view all matches for this distribution
view release on metacpan or search on metacpan
);
require Alien::Boost::ProgramOptions;
my $BOOSTDIR = Alien::Boost::ProgramOptions->dist_dir();
$ENV{CFLAGS} .= " -fpermissive";
$ENV{CXXFLAGS} .= " -fpermissive";
build [
"./configure --prefix=%{.install.prefix} --disable-shared --with-boost=$BOOSTDIR",
'%{gmake} LIBS=-lstdc++',
'%{gmake} install',
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
# Absolut-ize all paths
$ICONV_SOURCE_DIR = File::Spec->rel2abs($ICONV_SOURCE_DIR);
$ICONV_SOURCE = File::Spec->rel2abs($ICONV_SOURCE);
# Construct the necessary flags
my $CCFLAGS = $ENV{CCFLAGS};
my $LDFLAGS = $ENV{LDFLAGS};
if (! $RUNNING_IN_HELL) {
$CCFLAGS ||= '-I/usr/local/include';
$LDFLAGS ||= '-L/usr/local/lib';
}
Makefile.PL view on Meta::CPAN
print "\nIconv will be configured with the following arguments:\n",
" $configure_args\n";
chdir $ICONV_SOURCE_DIR;
local $ENV{CFLAGS} = $CCFLAGS;
local $ENV{LDFLAGS} = $LDFLAGS;
my @cmd = (File::Spec->catfile($ICONV_SOURCE_DIR, "configure"),
split(/\s+/, $configure_args));
if (system(@cmd) != 0) {
print <<"END";
configure $configure_args failed: $!
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
require ExtUtils::MM_Unix;
ExtUtils::MM_Unix->parse_version($DIST);
};
my $LIBANN_VERSION = '1.1.2';
my $CCFLAGS = $ENV{CCFLAGS} || '-I/usr/local/include';
my $LDFLAGS = $ENV{LDFLAGS} || '-L/usr/local/lib';
eval { Devel::CheckLib::assert_lib( lib => "ANN", LIBS => $LDFLAGS ) };
my $install_libann = 1;
if ( !$@ ) {
Makefile.PL view on Meta::CPAN
print "\n$name will be configured with the following arguments:\n", " $configure_args\n";
chdir $destination;
local $ENV{CFLAGS} = $CCFLAGS;
local $ENV{LDFLAGS} = $LDFLAGS;
my @cmd = ( File::Spec->catfile( $destination, "configure" ), split( /\s+/, $configure_args ) );
if ( system(@cmd) != 0 ) {
print <<EOF;
configure $configure_args failed: $!
Something went wrong with the $name configuration.
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Module/Build/AlienLibJIT.pm view on Meta::CPAN
system('autoreconf', '-i', '-f')
and die "Failed to run autoreconf";
$self->log_info("Running ./configure\n");
#system('./configure', '-enable-shared=false')
$ENV{CFLAGS} .= " -fPIC";
system('./configure')
and die "Failed to configure libjit!";
$self->log_info("Running make\n");
system('make') and die "Failed to build libjit!";
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$MECAB_EXE = File::Spec->rel2abs($MECAB_EXE);
my %REQUIRES;
# Construct the necessary flags
my $CCFLAGS = $ENV{CCFLAGS};
my $LDFLAGS = $ENV{LDFLAGS};
if (! $RUNNING_IN_HELL) {
$CCFLAGS ||= '-I/usr/local/include';
$LDFLAGS ||= '-L/usr/local/lib';
}
Makefile.PL view on Meta::CPAN
print "\nMeCab will be configured with the following arguments:\n",
" $configure_args\n";
chdir $MECAB_SOURCE_DIR;
local $ENV{CFLAGS} = $CCFLAGS;
local $ENV{LDFLAGS} = $LDFLAGS;
my @cmd = (File::Spec->catfile($MECAB_SOURCE_DIR, "configure"),
split(/\s+/, $configure_args));
if (system(@cmd) != 0) {
print <<"END";
configure $configure_args failed: $!
view all matches for this distribution
view release on metacpan or search on metacpan
use Cwd;
my $base_dir = getcwd();
# make libtool noisy for debug purposes
#$ENV{LTFLAGS} = "--debug --verbose" if $on_windows;
my $min_target_version = '4.9.0';
my $max_target_version = '4.99.99';
view all matches for this distribution
view release on metacpan or search on metacpan
my %module_build_args = (
alien_autoconf_with_pic => 0,
alien_build_commands =>
["%x -I../../inc -MMy::AlienPatch -e alien_patch", $conf_cmd, 'make'],
alien_extra_site_config => {
CFLAGS => $ENV{CFLAGS},
LDFLAGS => $ENV{LDFLAGS},
},
# Not using FFI, default_store library only dynamic and needed for XS
alien_isolate_dynamic => 0,
alien_name => 'netsnmp',
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Build/Linux.pm view on Meta::CPAN
# 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';
view all matches for this distribution
view release on metacpan or search on metacpan
inc/My/Build/Linux.pm view on Meta::CPAN
# 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';
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Alien/Uninum/ModuleBuild.pm view on Meta::CPAN
#}
#}
#print "\n\n" unless $first;
#}
#local $ENV{CFLAGS} = $cflags;
#local $ENV{LIBS} = $libs;
$self->SUPER::alien_do_commands($phase);
}
view all matches for this distribution
view release on metacpan or search on metacpan
if($alien_ssl)
{
meta->around_hook( $_ => sub {
my $orig = shift;
my $build = shift;
local $ENV{LDFLAGS} = $ENV{LDFLAGS};
unshift @LDFLAGS, grep /^-L/, shellwords( $alien_ssl->libs );
log "using LDFLAGS = $ENV{LDFLAGS}";
$orig->($build, @_);
}) for qw( build build_ffi );
}
plugin 'Build::Autoconf' => ();
view all matches for this distribution
view release on metacpan or search on metacpan
use Cwd;
my $base_dir = getcwd();
# make libtool noisy for debug purposes
#$ENV{LTFLAGS} = "--debug --verbose" if $on_windows;
my $min_target_version = '1.0.4';
view all matches for this distribution
view release on metacpan or search on metacpan
#my $proj_lib = FFI::CheckLib::find_lib (lib => 'proj');
Alien::Build->log ('$ENV{PROJ_LIB} IS ' . ($ENV{PROJ_LIB} // ''));
# make libtool noisy for debug purposes
#$ENV{LTFLAGS} = "--debug --verbose" if $on_windows;
use Cwd;
my $base_dir = getcwd();
# we can get dangling -L values
# bandaid until we find the source
sub cleanup_ldflags {
my ($build, @args) = @_;
if ($ENV{LDFLAGS} && $ENV{LDFLAGS} =~ /\s*-L\s*$/) {
$build->log("Trimming trailing -L from $ENV{LDFLAGS}");
$ENV{LDFLAGS} =~ s/\s*-L\s*$//;
}
#$orig->($build, @args);
return;
}
view all matches for this distribution
view release on metacpan or search on metacpan
public_I => 1,
public_l => 1,
);
# make libtool noisy for debug purposes
#$ENV{LTFLAGS} = "--debug --verbose" if $on_windows;
my $min_target_version = '5.0.0';
sub set_compiler_flags {
my ($orig, $build, @args) = @_;
local $ENV{CFLAGS} = "-O2 " . ($ENV{CFLAGS} // '');
local $ENV{CXXFLAGS} = '-O2 ' . ($ENV{CXXFLAGS} // '');
$build->log ("Setting compiler flag env vars to -O2");
$orig->($build, @args);
}
view all matches for this distribution
view release on metacpan or search on metacpan
use Cwd;
my $base_dir = getcwd();
# make libtool noisy for debug purposes
#$ENV{LTFLAGS} = "--debug --verbose" if $on_windows;
use Env qw { @PATH };
my $min_target_version = '3.26.0';
view all matches for this distribution
view release on metacpan or search on metacpan
);
plugin Extract => 'tar.gz';
if( $^O ne 'MSWin32' ) {
build [
sub {
$ENV{CFLAGS} = '-fPIC';
},
'./configure --prefix=%{.install.prefix}',
'%{make}',
'%{make} install',
];
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/SWIT/Test/ModuleTester.pm view on Meta::CPAN
__PACKAGE__->mk_accessors(qw(root_dir root_class install_dir project_class
subsystem_name no_cleanup));
sub new {
delete $ENV{TEST_FILES};
delete $ENV{MAKEFLAGS};
delete $ENV{MAKEOVERRIDES};
my $self = shift()->SUPER::new(@_);
$self->root_dir(tempdir("/tmp/" . basename($0)
. "_XXXXXX", CLEANUP => $self->no_cleanup ? 0 : 1))
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Apache/TestBuild.pm view on Meta::CPAN
}
}
my $build = $self->merge_build('httpd-2.0', $builds, $configs);
$ENV{CFLAGS} = $build->{cflags};
info "CFLAGS=$ENV{CFLAGS}";
my $prefix = "$self->{install}/$name";
rmtree($prefix) if $self->{fresh};
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
unless ($b->{'no-configure'}) {
local %ENV = %ENV;
xsh(0, qw/autoreconf -iv/) or die 'autoreconf failed.' unless -e 'configure';
my @p;
if ($s->{bootstrap}) {
$ENV{CPPFLAGS} = "-I$s->{prefix}/include" unless $b->{'no-cppflags'};
$ENV{LDFLAGS} = "-L$s->{prefix}/lib -Wl,-I" . linker($s);
}
push @p, "--prefix=$s->{prefix}";
my $e = $b->{environment};
$ENV{$_} = $e->{$_} for keys %$e;
xsh(0, './configure', @{$b->{switch}}, @p,
view all matches for this distribution
view release on metacpan or search on metacpan
no_index => {
directory => 'example',
},
extra_compiler_flags => [
'-Wall',
(map /\S+/g, grep defined, $ENV{EXTRACFLAGS}),
split ' ', $pkg_info{cflags},
],
extra_linker_flags => [
split ' ', $pkg_info{libs},
],
view all matches for this distribution
view release on metacpan or search on metacpan
inc/Inline/C.pm view on Meta::CPAN
}
sub make {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~ s/(--jobserver-fds=[\d,]+)//
if $ENV{MAKEFLAGS};
$o->system_call("$make", 'out.make');
}
sub make_install {
my ($o) = @_;
my $make = $o->{ILSM}{MAKE} || $Config::Config{make}
or croak "Can't locate your make binary";
if ($ENV{MAKEFLAGS}) { # Avoid uninitialized warnings
local $ENV{MAKEFLAGS} = $ENV{MAKEFLAGS} =~
s/(--jobserver-fds=[\d,]+)//;
}
$o->system_call("$make pure_install", 'out.make_install');
}
sub cleanup {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CPAN/Distribution.pm view on Meta::CPAN
? $ENV{PERL5LIB}
: ($ENV{PERLLIB} || "");
local $ENV{PERL5OPT} = defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : "";
# local $ENV{PERL_USE_UNSAFE_INC} = exists $ENV{PERL_USE_UNSAFE_INC} ? $ENV{PERL_USE_UNSAFE_INC} : 1; # get
$CPAN::META->set_perl5lib;
local $ENV{MAKEFLAGS}; # protect us from outer make calls
my $sub_wd = CPAN::anycwd(); # for cleaning up as good as possible
my($local_file);
# XXX I don't think this check needs to be here, as it
lib/CPAN/Distribution.pm view on Meta::CPAN
: ($ENV{PERLLIB} || "");
local $ENV{PERL5OPT} = defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : "";
# local $ENV{PERL_USE_UNSAFE_INC} = exists $ENV{PERL_USE_UNSAFE_INC} ? $ENV{PERL_USE_UNSAFE_INC} : 1; # look
$CPAN::META->set_perl5lib;
local $ENV{MAKEFLAGS}; # protect us from outer make calls
unless (system($shell) == 0) {
my $code = $? >> 8;
$CPAN::Frontend->mywarn("Subprocess shell exit code $code\n");
}
lib/CPAN/Distribution.pm view on Meta::CPAN
local $ENV{PERL5OPT} = defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : "";
local $ENV{PERL_USE_UNSAFE_INC} =
exists $ENV{PERL_USE_UNSAFE_INC} && defined $ENV{PERL_USE_UNSAFE_INC}
? $ENV{PERL_USE_UNSAFE_INC} : 1; # prepare
$CPAN::META->set_perl5lib;
local $ENV{MAKEFLAGS}; # protect us from outer make calls
if ($CPAN::Signal) {
delete $self->{force_update};
return;
}
lib/CPAN/Distribution.pm view on Meta::CPAN
local $ENV{PERL5OPT} = defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : "";
local $ENV{PERL_USE_UNSAFE_INC} =
exists $ENV{PERL_USE_UNSAFE_INC} && defined $ENV{PERL_USE_UNSAFE_INC}
? $ENV{PERL_USE_UNSAFE_INC} : 1; # make
$CPAN::META->set_perl5lib;
local $ENV{MAKEFLAGS}; # protect us from outer make calls
if ($CPAN::Signal) {
delete $self->{force_update};
$self->post_make();
return;
lib/CPAN/Distribution.pm view on Meta::CPAN
local $ENV{PERL5OPT} = defined $ENV{PERL5OPT} ? $ENV{PERL5OPT} : "";
local $ENV{PERL_USE_UNSAFE_INC} =
exists $ENV{PERL_USE_UNSAFE_INC} && defined $ENV{PERL_USE_UNSAFE_INC}
? $ENV{PERL_USE_UNSAFE_INC} : 1; # test
$CPAN::META->set_perl5lib;
local $ENV{MAKEFLAGS}; # protect us from outer make calls
local $ENV{PERL_MM_USE_DEFAULT} = 1 if $CPAN::Config->{use_prompt_default};
local $ENV{NONINTERACTIVE_TESTING} = 1 if $CPAN::Config->{use_prompt_default};
if ($run_allow_installing_within_test) {
my($allow_installing, $why) = $self->_allow_installing;
view all matches for this distribution