itk: remove -march=corei7 and -mtune=native flags from cmake build files

- probable cause of build failure on Hydra on branch release-20.09
This commit is contained in:
Ben Darwin 2020-10-15 19:12:18 -04:00
parent e70989d080
commit 83a1ce3d2b

View File

@ -12,6 +12,12 @@ stdenv.mkDerivation rec {
sha256 = "1z7rmqrhgl7hfb3d0077kvp8vpi05r2zk3qyqzmv7bzbal5sqqhv";
};
postPatch = ''
substituteInPlace CMake/ITKSetStandardCompilerFlags.cmake \
--replace "-march=corei7" "" \
--replace "-mtune=native" ""
'';
cmakeFlags = [
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_SHARED_LIBS=ON"