view release on metacpan or search on metacpan
inc/inc_ExtUtils-CBuilder/ExtUtils/CBuilder/Base.pm view on Meta::CPAN
$self->{config}{cc} = $ENV{CC} if defined $ENV{CC};
$self->{config}{ccflags} = $ENV{CFLAGS} if defined $ENV{CFLAGS};
$self->{config}{cxx} = $ENV{CXX} if defined $ENV{CXX};
$self->{config}{cxxflags} = $ENV{CXXFLAGS} if defined $ENV{CXXFLAGS};
$self->{config}{ld} = $ENV{LD} if defined $ENV{LD};
$self->{config}{ldflags} = $ENV{LDFLAGS} if defined $ENV{LDFLAGS};
unless ( exists $self->{config}{cxx} ) {
my ($ccpath, $ccbase, $ccsfx ) = fileparse($self->{config}{cc}, qr/\.[^.]*/);
foreach my $cxx (@{$cc2cxx{$ccbase}}) {
if( can_run( File::Spec->catfile( $ccpath, $cxx, $ccsfx ) ) ) {
view all matches for this distribution
view release on metacpan or search on metacpan
share/bin/shipwright-builder view on Meta::CPAN
catdir( $args{'install-base'}, 'sbin' ) . ':'
. catdir( $args{'install-base'}, 'bin' ) . ':'
. catdir( $args{'install-base'}, 'usr', 'sbin' ) . ':'
. catdir( $args{'install-base'}, 'usr', 'bin' ) . ':'
. $ENV{PATH};
$ENV{LDFLAGS} .= ' -L' . catdir( $args{'install-base'}, 'lib' );
$ENV{CFLAGS} .= ' -I' . catdir( $args{'install-base'}, 'include' );
}
mkpath $args{'install-base'} unless -e $args{'install-base'};
view all matches for this distribution
view release on metacpan or search on metacpan
tool/build_cs.pl view on Meta::CPAN
chdir $cs_dir;
# for configure
$ENV{CC} = $Config{cc};
$ENV{CFLAGS} = $Config{ccflags} . ' ' . $Config{optimize};
$ENV{LDFLAGS} = $Config{ldflags};
#$ENV{LIBS} = $Config{libs};
eval {
xsystem('./configure', @configure_args);
} or do {
view all matches for this distribution
view release on metacpan or search on metacpan
JPEG/Makefile.jpeg.maybe view on Meta::CPAN
}
else
{
$ENV{CC} = $Config{cc};
local $ENV{CFLAGS} = "$Config{ccflags} $Config{cccdlflags}";
local $ENV{LDFLAGS} = "$Config{ccflags} $Config{ldflags}";
system(sh => "./configure");
}
my $seen_empty_rule;
open my $fh, '<', 'Makefile' or die "Error opening Makefile: $!";
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
$ENV{PERL} = $^X;
##-- shamelessly lift compiler flags used for perl itself
## - this gets us e.g. -I/usr/local/include on freebsd
$ENV{CPPFLAGS} .= " ".$Config{cppflags};
$ENV{LDFLAGS} .= " ".$Config{ldflags};
##-- guts
-e "./configure"
or system(qw(autoreconf --install --verbose --force .))==0
or die("$0: ERROR: autoreconf failed: $!");
view all matches for this distribution
view release on metacpan or search on metacpan
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm view on Meta::CPAN
$self->{config}{ccflags} = join(" ", $self->{config}{ccflags}, $ENV{CFLAGS})
if defined $ENV{CFLAGS};
$self->{config}{cxx} = $ENV{CXX} if defined $ENV{CXX};
$self->{config}{cxxflags} = $ENV{CXXFLAGS} if defined $ENV{CXXFLAGS};
$self->{config}{ld} = $ENV{LD} if defined $ENV{LD};
$self->{config}{ldflags} = join(" ", $self->{config}{ldflags}, $ENV{LDFLAGS})
if defined $ENV{LDFLAGS};
unless ( exists $self->{config}{cxx} ) {
my ($ccbase, $ccpath, $ccsfx ) = fileparse($self->{config}{cc}, qr/\.[^.]*/);
view all matches for this distribution