diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-09-03 10:40:49 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2018-09-06 08:47:38 +0200 |
commit | 4c6e7fa28b66dee069d10b514d5e1317173da250 (patch) | |
tree | 9a8a85efbcfe36fe8842f5e0ad3e819b73ae3b61 /rules/host-pkg-config.make | |
parent | a7d93ba352b42652f275a946bc4473f2f47bf908 (diff) | |
download | ptxdist-4c6e7fa28b66dee069d10b514d5e1317173da250.tar.gz ptxdist-4c6e7fa28b66dee069d10b514d5e1317173da250.tar.xz |
pkg-config: cleanup and improve path and dependency handling
- move all search path magic into the wrapper script
- use the wrapper script for host packages as well
- enforce the dependencies for host packages
- make it possible to overwrite the script in the BSP
- track host and target dependencies separately
Needed e.g. by barebox to build host tools
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-pkg-config.make')
-rw-r--r-- | rules/host-pkg-config.make | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/rules/host-pkg-config.make b/rules/host-pkg-config.make index 45a323fd8..d4f72c11c 100644 --- a/rules/host-pkg-config.make +++ b/rules/host-pkg-config.make @@ -39,4 +39,20 @@ HOST_PKG_CONFIG_CONF_OPT := \ --disable-host-tool \ --with-internal-glib +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +PKG_CONFIG_SCRIPT = \ + $(shell ptxd_get_alternative scripts pkg-config-wrapper && echo $$ptxd_reply) + +$(STATEDIR)/host-pkg-config.install: + @$(call targetinfo) + @$(call world/install, HOST_PKG_CONFIG) + @mv $(PTXDIST_SYSROOT_HOST)/bin/pkg-config \ + $(PTXDIST_SYSROOT_HOST)/bin/pkg-config.real + @ln -sv $(PKG_CONFIG_SCRIPT) \ + $(PTXDIST_SYSROOT_HOST)/bin/pkg-config + @$(call touch) + # vim: syntax=make |