diff options
| author | nibbles 2bits | 2012-07-02 17:24:42 -0700 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-07-03 05:50:42 -0800 |
| commit | d242bc663d78fafda46cf16f1afea84fc08a2593 (patch) | |
| tree | 691d25f1a02949b34fe458a4a5152d7561d62322 /Library | |
| parent | 43db7a2d46ac4f895d0b14785a771d1a30635681 (diff) | |
| download | homebrew-d242bc663d78fafda46cf16f1afea84fc08a2593.tar.bz2 | |
netcdf: fix for ifort and missing f90 symbols
Netcdf when built with `--enable-fortran` using the Intel Fortran
compiler, ifort, does accept the `--force-load` option, causing a
build error where libnetcdff.dylib is missing all the f90 symbols.
The solution is in a FAQ on their website:
Set lt_cv_ld_force_load=no
http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#intel-fortran-macosx
Fixes #13050.
Closes #13174.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/netcdf.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/netcdf.rb b/Library/Formula/netcdf.rb index 649652698..2d5edde5c 100644 --- a/Library/Formula/netcdf.rb +++ b/Library/Formula/netcdf.rb @@ -35,7 +35,14 @@ class Netcdf < Formula end def install - ENV.fortran if fortran? + if fortran? + ENV.fortran + # fix for ifort not accepting the --force-load argument, causing + # the library libnetcdff.dylib to be missing all the f90 symbols. + # http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#intel-fortran-macosx + # https://github.com/mxcl/homebrew/issues/13050 + ENV['lt_cv_ld_force_load'] = 'no' if ENV['FC'] == 'ifort' + end common_args = %W[ --disable-dependency-tracking |
