From b3851cdeb076471199eb63eccf42f964de997361 Mon Sep 17 00:00:00 2001 From: Madoura Date: Thu, 14 Jul 2022 19:54:23 -0500 Subject: [PATCH] aws-sdk-cpp: fix build on RISC-V hosts --- pkgs/development/libraries/aws-sdk-cpp/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/aws-sdk-cpp/default.nix b/pkgs/development/libraries/aws-sdk-cpp/default.nix index efe8129d3b4f6..25fa023abd7d8 100644 --- a/pkgs/development/libraries/aws-sdk-cpp/default.nix +++ b/pkgs/development/libraries/aws-sdk-cpp/default.nix @@ -92,6 +92,8 @@ stdenv.mkDerivation rec { # propagation is needed for Security.framework to be available when linking propagatedBuildInputs = [ aws-crt-cpp ]; + # Ensure the linker is using atomic when compiling for RISC-V, otherwise fails + LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic"; cmakeFlags = [ "-DBUILD_DEPS=OFF"