Skip to content

Commit d61f65b

Browse files
committed
Don't set -Dbool=int to fix FTFBS with GCC 15.
Fixes: PDLPorters#7
1 parent c37caf0 commit d61f65b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Makefile.PL

+1-10
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ if( -e "$hdf5_include_path/H5config.h"){
9494
}
9595
}
9696

97-
# The following code was originally in the PDL::netCDF Makefile.PL
98-
# (Not sure if it is really needed here)
99-
# Check if compiled under gcc/Linux. In which case, define bool for the compiler
100-
my $define_bool = '';
101-
if ($Config{'osname'} =~ /linux/) {
102-
$define_bool = '-Dbool=int';
103-
print "Defining bool=int (linux seems to need this)\n";
104-
}
105-
10697
#If in win32, add the required defined for the HDF5 libs to work:
10798
my $define_win32HDF = '';
10899
if ($Config{'osname'} =~ /win32/i) {
@@ -176,7 +167,7 @@ my $preop = '$(PERL) -I$(INST_ARCHLIB) -I$(INST_LIB) -MPDL::Core::Dev -e pdlpp_m
176167

177168
WriteMakefile(
178169
'NAME' => 'PDL::IO::HDF5',
179-
'CCFLAGS' => "$Config{ccflags} $define_bool $define_win32HDF -DH5_USE_16_API -g",
170+
'CCFLAGS' => "$Config{ccflags} $define_win32HDF -DH5_USE_16_API -g",
180171
'CONFIGURE_REQUIRES' => { PDL => '2.004' },
181172
'BUILD_REQUIRES' => { PDL => '2.004' },
182173
# 'TEST_REQUIRES' => { PDL => '2.004' },

0 commit comments

Comments
 (0)