mongodb: fix build

Without this being set, the build fails, because it can't find crypto.h
during configure phase.
This commit is contained in:
Florian Klink 2023-08-02 16:17:45 +02:00
parent bcd27e495e
commit 9ef03257bb

View file

@ -149,6 +149,9 @@ in stdenv.mkDerivation rec {
] ++ lib.optionals (versionAtLeast version "4.4") [ "--link-model=static" ]
++ map (lib: "--use-system-${lib}") system-libraries;
# This seems to fix mongodb not able to find OpenSSL's crypto.h during build
hardeningDisable = [ "fortify3" ];
preBuild = ''
sconsFlags+=" CC=$CC"
sconsFlags+=" CXX=$CXX"