[Buildroot] [PATCH 1/5] grep: give hints to ./configure on where gettext() is
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Mon May 10 21:39:47 UTC 2010
The build of grep fails with:
fgrep.o: In function `add_count':
fgrep.c:(.text+0x90): undefined reference to `libintl_gettext'
This is because the ./configure script of grep thought that gettext
was part of the C library instead of part of libintl:
checking for GNU gettext in libc... (cached) yes
Therefore, it forgot to add -lintl while linking grep and related
applications. Passing gt_cv_func_gnugettext_libc=no forces grep to use
libintl instead.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
package/grep/grep.mk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/package/grep/grep.mk b/package/grep/grep.mk
index acef6e9..3fa671c 100644
--- a/package/grep/grep.mk
+++ b/package/grep/grep.mk
@@ -6,6 +6,7 @@
GREP_VERSION:=2.5.3
GREP_SOURCE:=grep-$(GREP_VERSION).tar.bz2
GREP_SITE:=$(BR2_GNU_MIRROR)/grep
+GREP_CONF_ENV = gt_cv_func_gnugettext_libc=no
GREP_CONF_OPT = --disable-perl-regexp --without-included-regex
GREP_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),gettext libintl)
--
1.6.3.3
More information about the buildroot
mailing list