From 5badc25f5839346bfaa9983855850891d7346fc8 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 14 Nov 2021 22:12:01 +0000 Subject: [PATCH] pcl: fix build on aarch64 --- pkgs/development/libraries/pcl/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/pcl/default.nix b/pkgs/development/libraries/pcl/default.nix index ee8f4dfe2e0a..8afcdbf33f23 100644 --- a/pkgs/development/libraries/pcl/default.nix +++ b/pkgs/development/libraries/pcl/default.nix @@ -32,6 +32,12 @@ stdenv.mkDerivation rec { sha256 = "0jhvciaw43y6iqqk7hyxnfhn1b4bsw5fpy04s01r5pkcsjjbdbqc"; }; + # remove attempt to prevent (x86/x87-specific) extended precision use + # when SSE not detected + postPatch = lib.optionalString (!(stdenv.isi686 || stdenv.isx86_64)) '' + sed -i '/-ffloat-store/d' cmake/pcl_find_sse.cmake + ''; + nativeBuildInputs = [ pkg-config cmake wrapQtAppsHook ]; buildInputs = [ eigen