dpdk: fix build with gcc9

This commit is contained in:
Franz Pletz 2019-11-05 01:55:18 +01:00
parent 771257c95d
commit a2ab758457
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
1 changed files with 6 additions and 2 deletions

View File

@ -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 = ''