Skip to content

Instantly share code, notes, and snippets.

@guziy
Created February 17, 2015 01:19
Show Gist options
  • Save guziy/7d4be55b1cb04c734344 to your computer and use it in GitHub Desktop.
Save guziy/7d4be55b1cb04c734344 to your computer and use it in GitHub Desktop.
hdf5_lib=$(true_path ../hdf5-sf90/lib)
hdf5_include=$(true_path ../hdf5-sf90/include)
nc_lib=$(true_path ../netcdf4-sf90/lib)
nc_include=$(true_path ../netcdf4-sf90/include)
LIBS="-lnetcdf"
CFLAGS="-I${hdf5_include} -I${nc_include}"
LDFLAGS="-L${hdf5_lib} -L${nc_lib}"
LIBS="${LIBS}" LDFLAGS="${LDFLAGS}" CXX=s.cc CC=s.cc F77=s.f77 FC=s.f90 LD=s.f90 CFLAGS="${CFLAGS}" ./configure --prefix=$(true_path ../netcdf4-sf90)
@guziy
Copy link
Author

guziy commented Feb 17, 2015

Script I used to configure netcdf4-fortran on guillimin (4.4.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment