Commit 9ef03257 authored by Florian Klink's avatar Florian Klink
Browse files

mongodb: fix build

Without this being set, the build fails, because it can't find crypto.h
during configure phase.
parent bcd27e49
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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"