This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[build] Link genmatch with $(LIBINTL)

With the match-and-simply patch, Solaris 10 bootstrap is broken:

Undefined                       first referenced
 symbol                             in file
libintl_bindtextdomain              ../libcpp/libcpp.a(init.o)
libintl_dgettext                    ../libcpp/libcpp.a(errors.o)
ld: fatal: symbol referencing errors. No output written to build/genmatch
collect2: error: ld returned 1 exit status
make[3]: *** [build/genmatch] Error 1

It seems the following patch fixes this, at least a i386-pc-solaris2.10
bootstrap is in stage2 now.

Ok for mainline?


2014-10-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* (build/genmatch(build_exeext)): Add $(LIBINTL) to
	Add $(LIBINTL_DEP) dependency.

diff --git a/gcc/ b/gcc/
--- a/gcc/
+++ b/gcc/
@@ -2519,8 +2519,9 @@ genprog = $(genprogerr) check checksum c
 # These programs need libs over and above what they get from the above list.
 build/genautomata$(build_exeext) : BUILD_LIBS += -lm
-build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
+build/genmatch(build_exeext) : BUILD_LIBS += $(LIBINTL)
+build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) \
   $(BUILD_ERRORS) build/vec.o build/hash-table.o
 # These programs are not linked with the MD reader.
Rainer Orth, Center for Biotechnology, Bielefeld University

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]