dpdk: fix build with gcc9
This commit is contained in:
parent
771257c95d
commit
a2ab758457
@ -21,8 +21,12 @@ in stdenv.mkDerivation rec {
|
|||||||
RTE_KERNELDIR = if mod then "${kernel.dev}/lib/modules/${kver}/build" else "/var/empty";
|
RTE_KERNELDIR = if mod then "${kernel.dev}/lib/modules/${kver}/build" else "/var/empty";
|
||||||
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
RTE_TARGET = "x86_64-native-linuxapp-gcc";
|
||||||
|
|
||||||
|
NIX_CFLAGS_COMPILE = [
|
||||||
# we need sse3 instructions to build
|
# we need sse3 instructions to build
|
||||||
NIX_CFLAGS_COMPILE = [ "-msse3" ];
|
"-msse3"
|
||||||
|
# gcc9 compatibility
|
||||||
|
"-Wno-error=address-of-packed-member"
|
||||||
|
];
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user