aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/grep/grep-2.7/uclibc_libiconv.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/grep/grep-2.7/uclibc_libiconv.patch')
-rw-r--r--recipes/grep/grep-2.7/uclibc_libiconv.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes/grep/grep-2.7/uclibc_libiconv.patch b/recipes/grep/grep-2.7/uclibc_libiconv.patch
new file mode 100644
index 0000000000..de83a61eed
--- /dev/null
+++ b/recipes/grep/grep-2.7/uclibc_libiconv.patch
@@ -0,0 +1,18 @@
+# Needed to get grep to build with uclibc.
+# Patch submitted by Bruno Haible to the grep ML on 2010-09-23.
+#
+# Signed-off-by: Scott Garman <sgarman@zenlinux.com>
+diff -ur grep-2.7.orig/src/Makefile.am grep-2.7/src/Makefile.am
+--- grep-2.7.orig/src/Makefile.am 2010-04-04 05:22:24.000000000 -0700
++++ grep-2.7/src/Makefile.am 2010-09-27 21:07:39.370222501 -0700
+@@ -36,7 +36,9 @@
+ # must precede $(LIBINTL) in order to ensure we use GNU getopt.
+ # But libgreputils.a must also follow $(LIBINTL), since libintl uses
+ # replacement functions defined in libgreputils.a.
+-LDADD = libgrep.a ../lib/libgreputils.a $(LIBINTL) ../lib/libgreputils.a
++LDADD = \
++ libgrep.a \
++ ../lib/libgreputils.a $(LIBINTL) ../lib/libgreputils.a $(LIBICONV)
+
+ grep_LDADD = $(LDADD) $(LIB_PCRE)
+ localedir = $(datadir)/locale