Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory
@ 2012-07-10 22:19 Arnout Vandecappelle
  2012-07-11  9:24 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-07-10 22:19 UTC (permalink / raw)
  To: buildroot

Packages depending on libgcrypt call libgcrypt-config to determine its
CFLAGS.  If libgcrypt-config happens to be installed on the host, this
will add /usr/include to the target include path.  So make sure
libgcrypt-config is in the host directory.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

---
 package/libgcrypt/libgcrypt.mk |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 68c6c47..2671819 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -17,4 +17,13 @@ LIBGCRYPT_CONF_OPT = \
 
 LIBGCRYPT_DEPENDENCIES = libgpg-error
 
+# libgcrypt doesn't use pkg-config but instead has its own
+# libgcrypt-config.  Install this in the host directory so
+# packages depending on libgcrypt can find it.
+define LIBGCRYPT_HOST_INSTALL_LIBGCRYPT_CONFIG
+	$(INSTALL) -D -m 0755 $(STAGING_DIR)/usr/bin/libgcrypt-config $(HOST_DIR)/usr/bin/libgcrypt-config
+endef
+
+LIBGCRYPT_POST_INSTALL_STAGING_HOOKS += LIBGCRYPT_HOST_INSTALL_LIBGCRYPT_CONFIG
+
 $(eval $(call AUTOTARGETS))
-- 
tg: (b8b57bb..) t/libgcrypt-config (depends on: master)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-11  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 22:19 [Buildroot] [PATCH] libgcrypt: install libgcrypt-config in host directory Arnout Vandecappelle
2012-07-11  9:24 ` Thomas Petazzoni
2012-07-11  9:30   ` Arnout Vandecappelle
2012-07-11  9:43     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox