Skip to content

Commit

Permalink
aws-sdk-cpp: fix build on RISC-V hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Madouura committed Nov 25, 2022
1 parent 182c974 commit b3851cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/libraries/aws-sdk-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b3851cd

Please sign in to comment.