aws-sdk-cpp: fix build on RISC-V hosts

This commit is contained in:
Madoura 2022-07-14 19:54:23 -05:00
parent 182c974f57
commit b3851cdeb0
No known key found for this signature in database
GPG Key ID: 3201136B3DB072F9

View File

@ -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"