firefox-esr-68: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-03 13:10:28 +01:00
parent 688199745d
commit 5ba6f78efa
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -160,7 +160,10 @@ stdenv.mkDerivation rec {
]
++ lib.optionals (!isTorBrowserLike) [
"-I${nss.dev}/include/nss"
];
]
++ lib.optional (pname == "firefox-esr" && lib.versionAtLeast ffversion "68"
&& lib.versionOlder ffversion "69")
"-Wno-error=format-security";
postPatch = lib.optionalString (lib.versionAtLeast ffversion "63.0" && !isTorBrowserLike) ''
substituteInPlace third_party/prio/prio/rand.c --replace 'nspr/prinit.h' 'prinit.h'