Merge pull request #246792 from flokli/fix-mongodb

mongodb: fix build
This commit is contained in:
Florian Klink 2023-08-02 17:06:41 +02:00 committed by GitHub
commit 90044aebad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"