klish: Fix build errors with external toolchains
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 5 Jun 2017 20:41:00 +0000 (13:41 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 6 Jun 2017 00:18:51 +0000 (17:18 -0700)
commit43269ecf0178483968f2ed05af7cb1d63f345fda
tree0c76f39067fdf157a78a9c1d51cfe1d8005be2b9
parentc6f813df2ba8ced9e3289efc87ccb61360d41d84
klish: Fix build errors with external toolchains

We would first not be able to properly detect libxml2 because it's not
automatically found, fix that by explicitly linking against it (and zlib
a dependency). Then if we don't don't define X_OPEN_SOURCE=500, we would
run into the following build error:

clish/shell/shell_execute.c: In function 'clish_shell_exec_action':
clish/shell/shell_execute.c:309:18: error: 'sigignore' undeclared (first
use in this function)
  sa.sa_handler = sigignore; /* Empty signal handler */
                  ^
clish/shell/shell_execute.c:309:18: note: each undeclared identifier is
reported only once for each function it appears in

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