Merge pull request #100659 from bcdarwin/fix-itk-flags

itk: remove -march=corei7 and -mtune=native flags from cmake build files
This commit is contained in:
Robert Scott 2020-10-16 19:49:56 +01:00 committed by GitHub
commit bdb7c69d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"