Re: How to set CFLAGS FFLAGS and CPPFLAGS when compile NCL with source code?

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 12 2010 - 08:02:02 MST

Hi Brick,

In the future, please post ncl installation questions to ncl-install,
http://mailman.ucar.edu/mailman/listinfo/ncl-install.

To set the compile options for NCL, you need to cd to the top level
"config" directory under the NCL source tree, and modify the
appropriate configuration file. Use "LINUX" for any Linux system, or
"Darwin_Intel" for a Mac Intel system.

In that file, modify these lines to set the compiler:

#define CCompiler gcc
#define FCompiler gfortran

and these lines to set the flags:

#define CcOptions -ansi -fPIC
#define FcOptions -fPIC -fno-second-underscore -fno-range-check

Since you are using icc/ifort, we have some sample configuration
files for this. See the files LINUX.64.INTEL, LINUX.IA64.INTEL, and
LINUX.INTEL for a start. If any one of these look like what you need,
you can copy it over the LINUX file (if you are compiling on a Linux
system, of course)

Good luck,

--Mary

On Mar 11, 2010, at 3:05 PM, brick wrote:

> Hi
>
> How to set CFLAGS FFLAGS and CPPFLAGS when compile NCL with source
> code? The compiler is icc and ifort. Thanks.
>
> brick
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 12 08:02:54 2010

This archive was generated by hypermail 2.1.8 : Fri Mar 12 2010 - 09:11:56 MST