gem-config: fix grpc build with gcc8

This commit is contained in:
Franz Pletz 2019-01-11 09:31:18 +01:00
parent ab354b74c8
commit 62c60f471c
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -201,7 +201,19 @@ in
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ openssl ];
hardeningDisable = [ "format" ];
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-overflow" "-Wno-error=implicit-fallthrough" ];
NIX_CFLAGS_COMPILE = [
"-Wno-error=stringop-overflow"
"-Wno-error=implicit-fallthrough"
"-Wno-error=sizeof-pointer-memaccess"
"-Wno-error=cast-function-type"
"-Wno-error=class-memaccess"
"-Wno-error=ignored-qualifiers"
];
dontBuild = false;
postPatch = ''
substituteInPlace Makefile \
--replace '-Wno-invalid-source-encoding' ""
'';
};
hitimes = attrs: {