aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Baruch Siach <baruch@tkos.co.il>2018-06-11 21:24:47 +0300
committerGravatar Peter Korsgaard <peter@korsgaard.com>2018-07-17 09:20:40 +0200
commit6c6b68642be2277652896e9612ea87ca2d3fc0da (patch)
tree877742fc107e1a74826eb4348df95f75eebed15f
parent56150b41567413ddb5be9bcb08d8c9be445374be (diff)
downloadbuildroot-6c6b68642be2277652896e9612ea87ca2d3fc0da.tar.gz
buildroot-6c6b68642be2277652896e9612ea87ca2d3fc0da.tar.bz2
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> (cherry picked from commit b4a7145b0b98fb37ee649e293a6a81785df67837) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/triggerhappy/triggerhappy.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/triggerhappy/triggerhappy.mk b/package/triggerhappy/triggerhappy.mk
index 9f74c486f1..4c39ab5e5d 100644
--- a/package/triggerhappy/triggerhappy.mk
+++ b/package/triggerhappy/triggerhappy.mk
@@ -8,9 +8,11 @@ TRIGGERHAPPY_VERSION = b822888066129350e51ad79f1cf307fa38dae4f7
TRIGGERHAPPY_SITE = $(call github,wertarbyte,triggerhappy,$(TRIGGERHAPPY_VERSION))
TRIGGERHAPPY_LICENSE = GPL-3.0+
TRIGGERHAPPY_LICENSE_FILES = COPYING
+TRIGGERHAPPY_DEPENDENCIES = host-pkgconf
define TRIGGERHAPPY_BUILD_CMDS
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) thd th-cmd
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) PKGCONFIG="$(PKG_CONFIG_HOST_BINARY)" \
+ -C $(@D) thd th-cmd
endef
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)