Re: Fwd: Have anybody installed ncarg on Mac OS 10.6

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 10 2009 - 10:54:23 MST

Thanks Guanshan, glad this worked! I've got this on my list to add
recognition of the "-m32/64" option for WRAPIT.

--Mary

On Nov 9, 2009, at 4:36 PM, guangshan chen wrote:

> Hi Mary,
>
> Thanks for the hint. Now WRAPIT works with 64-bit compiler (gcc and
> gfortran) in 32-bit ncl.
>
> Here is what I did:
> Searching "case Darwin" in WARPIT
>
> First coming:
> if ($debug == 1 && ($f90c == g77 || $f90c == gfortran)) then
> # GNU
> set fopts = "$fopts -v -c -m32 -fno-common -ffortran-bounds-
> check -fno-second-underscore"
> else
> set fopts = "$fopts -c -m32 -O -fno-common -fno-second-
> underscore"
>
> Second coming:
> if ($debug == 1) then
> set cmd = "gcc $copts -c -m32 -fno-common -I${NCARG_ROOT}/
> include WRAPIT.c"
> echo $cmd
> else
> set cmd = "gcc $copts -c -m32 -fno-common -O -I${NCARG_ROOT}/
> include WRAPIT.c"
>
> Third coming:
> case Darwin: # MacOSX
> if (-e /sw/lib/libg2c.a) then
> set cmd = "gcc -m32 -bundle -flat_namespace -undefined
> suppress $ld_suffix -L/sw/lib -lg2c"
> else
> set cmd = "gcc -m32 -bundle -flat_namespace -undefined
> suppress $ld_suffix"
> endif
> if ($f90c == gfortran) then # gfortran compiler
> set cmd = "$cmd -m32 -lgfortran"
> endif
> if ($f90c == g95) then # g95 compiler
> set cmd = "$cmd -m32 -lf95"
> endif
>
>
> I like to build a 64-bit ncl for Snow leopard if I can get help
> form you. But I only can do it at weekend. I have more free time.
>
> Guangshan

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Tue Nov 10 10:53:48 2009

This archive was generated by hypermail 2.1.8 : Wed Nov 11 2009 - 12:51:06 MST