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:
parent
bcd27e495e
commit
9ef03257bb
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue