netcdf-fortran
netcdf-fortran copied to clipboard
Compilation with clang (does not support --whole-archive & --no-whole-archive)
Hello, Compiling with the new clang/flang version is producing the following error:
clang-12: error: unsupported option '--whole-archive'
clang-12: error: unsupported option '--no-whole-archive'
clang-12: error: unknown argument: '-soname'
clang-12: error: no such file or directory: 'libnetcdff.so.7'
make[2]: *** [Makefile:734: libnetcdff.la] Error 1
make[2]: Leaving directory '/opt/praetorium/netcdf-fortran-4.5.3/fortran'
make[1]: *** [Makefile:626: all] Error 2
make[1]: Leaving directory '/opt/praetorium/netcdf-fortran-4.5.3/fortran'
make: *** [Makefile:581: all-recursive] Error 1
It seems that these flags are embedded in the configure file. I was wondering if there is any way to work around this issue or any suggestion. My OS is CentOS8. Thanks.