Merge pull request #90116 from purcell/netcdf-no-gcc-at-runtime
netcdf: prevent bogus runtime dependency on gcc
This commit is contained in:
commit
49dc0245c4
@ -3,6 +3,7 @@
|
|||||||
, hdf5
|
, hdf5
|
||||||
, m4
|
, m4
|
||||||
, curl # for DAP
|
, curl # for DAP
|
||||||
|
, removeReferencesTo
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -26,7 +27,7 @@ in stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ m4 ];
|
nativeBuildInputs = [ m4 removeReferencesTo ];
|
||||||
buildInputs = [ hdf5 curl mpi ];
|
buildInputs = [ hdf5 curl mpi ];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
@ -42,6 +43,12 @@ in stdenv.mkDerivation rec {
|
|||||||
]
|
]
|
||||||
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
++ (stdenv.lib.optionals mpiSupport [ "--enable-parallel-tests" "CC=${mpi}/bin/mpicc" ]);
|
||||||
|
|
||||||
|
disallowedReferences = [ stdenv.cc ];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
remove-references-to -t ${stdenv.cc} "$(readlink -f $out/lib/libnetcdf.settings)"
|
||||||
|
'';
|
||||||
|
|
||||||
doCheck = !mpiSupport;
|
doCheck = !mpiSupport;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user