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

This commit is contained in:
Madoura
2022-11-25 10:41:20 -06:00
parent 182c974f57
commit b3851cdeb0
@@ -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"