haproxy: Pass down TARGET_CPPFLAGS for lua build
authorFlorian Fainelli <f.fainelli@gmail.com>
Sun, 2 Apr 2017 21:17:33 +0000 (14:17 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Sun, 2 Apr 2017 21:17:33 +0000 (14:17 -0700)
commit75091d42e175320b10ce4d341027c193ddeb4b66
treef141bd9907eb89066d069dd4e1c5f00a5e4343c5
parent11543475e322bf69bf102a4b8883cae7ad25f7b6
haproxy: Pass down TARGET_CPPFLAGS for lua build

Some external toolchaind don't automatically search for headers in
$(STAGING_DIR), make sure we do pass TARGET_CPPFLAGS as appropriate.
This fixes build errors such as:

mipsel-linux-gnu-gcc -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_USE_LINUX
-c -o lua.o lua.c
lua.c:80:31: fatal error: readline/readline.h: No such file or directory
 #include <readline/readline.h>
                               ^
compilation terminated.
<builtin>: recipe for target 'lua.o' failed
make[6]: *** [lua.o] Error 1

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
net/haproxy/Makefile