Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ use PDL::Core::Dev; # Pick up development utilities
use ExtUtils::MakeMaker;
use Devel::CheckLib qw(check_lib);

# Check if compiled under gcc/Linux. In which case, define bool for the compiler
my $define_bool = '';
if ($^O =~ /linux/) {
$define_bool = '-Dbool=int';
print "Defining bool=int (linux seems to need this)\n";
}

my $package = [qw(netcdf.pd NetCDF PDL::NetCDF)];
my %hash = pdlpp_stdargs($package);
my %more_items = (
Expand Down Expand Up @@ -43,7 +36,6 @@ my %more_items = (
},
);
%hash = (%hash, %more_items);
$hash{INC} .= " $define_bool" if $define_bool;

if (check_lib( header => 'netcdf.h', lib => 'netcdf',)) {
$hash{LIBS}[0] .= " -lnetcdf";
Expand Down
Loading