[Buildroot] [git commit branch/2018.05.x] triggerhappy: use target pkg-config
Peter Korsgaard
peter at korsgaard.com
Tue Jul 17 07:20:40 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=6c6b68642be2277652896e9612ea87ca2d3fc0da
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.05.x
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 at korsgaard.com>
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit b4a7145b0b98fb37ee649e293a6a81785df67837)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/triggerhappy/triggerhappy.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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)
More information about the buildroot
mailing list