reaver: Fix build with external toolchains
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 17 Jun 2017 02:53:59 +0000 (19:53 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sat, 17 Jun 2017 03:47:03 +0000 (20:47 -0700)
commit7eaa97f91c560eef1907562bedfca32b3c3a841a
treeac84cbdc320079c4edfc024b45d0dce96724f52d
parent319c3dc5ad6f5db165beca0a7a1ec355c9ddf864
reaver: Fix build with external toolchains

We would not be able to search for pcap.h because CFLAGS are not passed
from src/Makefile down to src/wps/Makefile:

make[4]: Entering directory
'/home/florian/dev/openwrt/trunk/build_dir/target-mipsel-unknown-linux-gnu_glibc/reaver-1.4/src/wps'
mipsel-linux-gnu-gcc -I../utils -I ../ wps_attr_build.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_attr_parse.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_attr_process.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_common.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_dev_attr.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_enrollee.c -c
mipsel-linux-gnu-gcc -I../utils -I ../ wps_registrar.c -c
In file included from ../misc.h:41:0,
                 from wps_registrar.c:27:
../defs.h:43:18: fatal error: pcap.h: No such file or directory
 #include <pcap.h>
                  ^
compilation terminated.
Makefile:28: recipe for target 'wps_registrar.o' failed

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
net/reaver/Makefile
net/reaver/patches/0102-wps-cflags.patch [new file with mode: 0644]