dpdk: fix build with gcc9

wip/yesman
Franz Pletz 5 years ago
parent 771257c95d
commit a2ab758457
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
  1. 8
      pkgs/os-specific/linux/dpdk/default.nix

@ -21,8 +21,12 @@ in stdenv.mkDerivation rec {
RTE_KERNELDIR = if mod then "${kernel.dev}/lib/modules/${kver}/build" else "/var/empty";
RTE_TARGET = "x86_64-native-linuxapp-gcc";
# we need sse3 instructions to build
NIX_CFLAGS_COMPILE = [ "-msse3" ];
NIX_CFLAGS_COMPILE = [
# we need sse3 instructions to build
"-msse3"
# gcc9 compatibility
"-Wno-error=address-of-packed-member"
];
hardeningDisable = [ "pic" ];
postPatch = ''

Loading…
Cancel
Save