triggerhappy: use target pkg-config
authorBaruch Siach <baruch@tkos.co.il>
Mon, 11 Jun 2018 18:24:47 +0000 (21:24 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 11 Jun 2018 19:37:36 +0000 (21:37 +0200)
commitb4a7145b0b98fb37ee649e293a6a81785df67837
treedcecc7ee05ff4b3958ca140d9968703972d4a9f0
parent0647268416ecf5c50741838fae4fc48b1c0750be
triggerhappy: use target pkg-config

triggerhappy uses pkg-config to detect the systemd library. Make sure it
uses the target pkg-config, not the host one.

Fixes build failure when the host has systemd pkg-config files:

.../host/bin/arm-linux-gcc -static  th-cmd.o cmdsocket.o  -lsystemd -o th-cmd
.../host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-uclibcgnueabi/6.4.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld: cannot find -lsystemd

Cc: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/triggerhappy/triggerhappy.mk