From 8ccbba4f55fa42e8bd2059d1635bea9625452950 Mon Sep 17 00:00:00 2001 From: Joerie de Gram Date: Wed, 19 Jan 2022 21:35:51 +0100 Subject: [PATCH] aws-c-common: emit unwind information for RISC-V Pass -fasynchronous-unwind-tables in CFLAGS for RISC-V. This fixes functionality which depends on backtrace() and enables running the test suite without error. --- pkgs/development/libraries/aws-c-common/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/aws-c-common/default.nix b/pkgs/development/libraries/aws-c-common/default.nix index 79296a8e04f6f..4af6d9b0ac421 100644 --- a/pkgs/development/libraries/aws-c-common/default.nix +++ b/pkgs/development/libraries/aws-c-common/default.nix @@ -21,6 +21,8 @@ stdenv.mkDerivation rec { cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests + ] ++ lib.optionals stdenv.hostPlatform.isRiscV [ + "-DCMAKE_C_FLAGS=-fasynchronous-unwind-tables" ]; # aws-c-common misuses cmake modules, so we need