Merge pull request #633 from davydden/netcdf_curl

make netcdf link against Spack's curl
This commit is contained in:
Todd Gamblin 2016-03-25 12:54:53 -07:00
commit 42ec822379

View file

@ -43,6 +43,13 @@ def install(self, spec, prefix):
"--enable-dap" "--enable-dap"
] ]
# Make sure Netcdf links against Spack's curl
# Otherwise it may pick up system's curl, which could lead to link errors:
# /usr/lib/x86_64-linux-gnu/libcurl.so: undefined reference to `SSL_CTX_use_certificate_chain_file@OPENSSL_1.0.0'
LIBS.append("-lcurl")
CPPFLAGS.append("-I%s" % spec['curl'].prefix.include)
LDFLAGS.append ("-L%s" % spec['curl'].prefix.lib)
if '+mpi' in spec: if '+mpi' in spec:
config_args.append('--enable-parallel4') config_args.append('--enable-parallel4')