Merge pull request #15963 from abuibrahim/release-16.03

pktgen: build with the same CFLAGS as dpdk
This commit is contained in:
Domen Kožar 2016-06-07 14:28:57 +01:00
commit f199be0faf

View File

@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
NIX_CFLAGS_COMPILE = [ "-march=core2" ];
patchPhase = ''
sed -i -e s:/usr/local:$out:g lib/lua/src/luaconf.h
sed -i -e s:/usr/bin/lscpu:${utillinux}/bin/lscpu:g lib/common/wr_lscpu.h