[Buildroot] [git commit branch/2017.02.x] package/git: add optional support for gettext

Peter Korsgaard peter at korsgaard.com
Mon Mar 13 23:25:59 UTC 2017


commit: https://git.buildroot.net/buildroot/commit/?id=32a9eb6e5abbc1787e0a82756d35aa8fb5b411cb
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2017.02.x

git links to libintl if available:

$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/git | grep NEEDED
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]
 0x00000001 (NEEDED)                     Shared library: [libintl.so.8]
 0x00000001 (NEEDED)                     Shared library: [libc.so.0]

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
(cherry picked from commit aecab2f29c396a04d24e61479d7fc3f53149448f)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/git/git.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/git/git.mk b/package/git/git.mk
index 1c15740..d3a494f 100644
--- a/package/git/git.mk
+++ b/package/git/git.mk
@@ -11,6 +11,10 @@ GIT_LICENSE = GPLv2, LGPLv2.1+
 GIT_LICENSE_FILES = COPYING LGPL-2.1
 GIT_DEPENDENCIES = zlib host-gettext
 
+ifeq ($(BR2_PACKAGE_GETTEXT),y)
+GIT_DEPENDENCIES += gettext
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 GIT_DEPENDENCIES += openssl
 GIT_CONF_OPTS += --with-openssl


More information about the buildroot mailing list