diff options
author | Madoura <madouura@gmail.com> | 2022-07-14 19:54:23 -0500 |
---|---|---|
committer | Madoura <madouura@gmail.com> | 2022-11-25 10:41:20 -0600 |
commit | b3851cdeb076471199eb63eccf42f964de997361 (patch) | |
tree | bf22faf2c0fa95ccd2f560e1519b572f95c651b3 /pkgs/development/libraries/aws-sdk-cpp | |
parent | 182c974f574f82115304ff61023493af208ed720 (diff) |
aws-sdk-cpp: fix build on RISC-V hosts
Diffstat (limited to 'pkgs/development/libraries/aws-sdk-cpp')
-rw-r--r-- | pkgs/development/libraries/aws-sdk-cpp/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
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" |