[Patch] Fix binutils/bin2c dependence on libintl

Tristan Gingold gingold@adacore.com
Thu Jan 14 09:33:00 GMT 2010


Hi,

on my system (Darwin), bin2c fails to compile because of an hidden
dependency on libintl.  This patch fixes this issue.

Tristan.

binutils/
2010-01-14  Tristan Gingold  <gingold@adacore.com>

	* Makefile.am (bin2c): Add libintl dependance and library.
	* Makefile.in: Regenerate.
---
 binutils/Makefile.am |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/binutils/Makefile.am b/binutils/Makefile.am
index 873e568..16d900f 100644
--- a/binutils/Makefile.am
+++ b/binutils/Makefile.am
@@ -273,8 +273,8 @@ sysinfo.o: sysinfo.c
 	  $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
 	fi
 
-bin2c$(EXEEXT_FOR_BUILD):
-	$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c $(srcdir)/version.c
+bin2c$(EXEEXT_FOR_BUILD): $(LIBINTL_DEP)
+	$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c $(srcdir)/version.c $(LIBINTL)
 
 embedspu: embedspu.sh
 	sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@



More information about the Binutils mailing list