[PATCH] Add $(LIBS) and set libiconv in tools/Makefile for Darwin 

This trivial patch creates $(LIBS) and sets it to iconv in tools/Makefile 
because MacOS
10.4 [gcc 4.0] gets cranky about libiconv routines referenced in mailinfo.c
(convert_to_utf8) and no library pointer to link the symbols against.

I haven't tested this on Linux yet (but I will tomorrow when I get into work).

Signed-off-by: Mark Allen <[EMAIL PROTECTED]>
[PATCH] Add LIBS field and populate with iconv to tools/Makefile for Darwin 

OS X.4 [gcc 4.0] gets cranky about iconv data structures and no 
library pointer to link the symbols against.

Signed-off-by: Mark Allen <[EMAIL PROTECTED]>

 tools/Makefile |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/Makefile b/tools/Makefile
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -7,13 +7,14 @@ ALL_CFLAGS = $(CFLAGS)
 PROGRAMS=git-mailsplit git-mailinfo
 SCRIPTS=git-applymbox git-applypatch
 git-%: %.c
-       $(CC) $(ALL_CFLAGS) -o $@ $(filter %.c,$^)
+       $(CC) $(ALL_CFLAGS) -l$(LIBS) -o $@ $(filter %.c,$^)
 all: $(PROGRAMS)

Reply via email to