open-vm-tools: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-03 13:47:41 +01:00
parent cb08ffe4c5
commit c124d44e49
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -46,9 +46,15 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
# igrone glib-2.62 deprecations
# Drop in next stable release.
NIX_CFLAGS_COMPILE = [ "-DGLIB_DISABLE_DEPRECATION_WARNINGS" ];
NIX_CFLAGS_COMPILE = [
# igrone glib-2.62 deprecations
# Drop in next stable release.
"-DGLIB_DISABLE_DEPRECATION_WARNINGS"
# fix build with gcc9
"-Wno-error=address-of-packed-member"
"-Wno-error=format-overflow"
];
postInstall = ''
wrapProgram "$out/etc/vmware-tools/scripts/vmware/network" \