----- Original Message ----- 
From: "Tim Jenness" <[email protected]>

> We'd get a lot further if ExtUtils::MakeMaker fixed that (maybe
> Module::Build won't have the problem anyhow).

I've often wondered whether Schwern's assertion that MakeMaker would always 
be broken was a simple statement of fact, or an expression of his goal :-)

> My main issue is that slatec doesn't work for me because the slatec code
> gets compiled using gfortran in 32-bit mode but my perl and C compiler are
> in 64-bit mode so it doesn't link. I could hack the Makefile.PL to force
> -m64 but I'm not sure how to convince ExtUtils::F77 to do that itself
> automatically (ExtUtils::F77 could realise that it's running in a 64-bit
> perl with a GNU compiler so add the -m64 to CFLAGS itself).

F77.pm currently specifies:

$F77config{Darwin}{GFortran}{Cflags} = ' ';        # <---need this space!

Could it be that just needs changing to

$F77config{Darwin}{GFortran}{Cflags} =
  <running_in_64bit_mode> ? ' -m64' : ' ';

I don't know how you determine whether you're "running_in_64bit_mode". I 
would think there's a Config value somewhere that tells you . Does 
$Config{archname} contain a tell-tale symbol ? (It does on MS Windows.)

Cheers,
Rob 


_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to