This is the mail archive of the gcc-bugs@gcc.gnu.org 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]

[Bug ada/50842] [4.7 Regression] gnatmake fails to link in stage3 with undefined symbol _iconv_close


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50842

--- Comment #7 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2011-10-27 19:23:02 UTC ---
For the record, in order to bootstrap Ada on powerpc-apple-darwin9, I have the
following patch

--- ../_gcc_clean/gcc/ada/gcc-interface/Makefile.in    2011-10-27
17:40:15.000000000 +0200
+++ ../work/gcc/ada/gcc-interface/Makefile.in    2011-10-27 19:25:49.000000000
+0200
@@ -175,6 +175,10 @@ top_builddir = ../..
 LIBINTL = @LIBINTL@
 LIBINTL_DEP = @LIBINTL_DEP@

+# Character encoding conversion library.
+LIBICONV = @LIBICONV@
+LIBICONV_DEP = @LIBICONV_DEP@
+
 # Any system libraries needed just for GNAT.
 SYSLIBS = @GNAT_LIBEXC@

@@ -242,11 +246,11 @@ LIBIBERTY = ../../libiberty/libiberty.a

 # How to link with both our special library facilities
 # and the system's installed libraries.
-LIBS = $(LIBINTL) $(LIBIBERTY) $(SYSLIBS)
-LIBDEPS = $(LIBINTL_DEP) $(LIBIBERTY)
+LIBS = $(LIBINTL) $(LIBICONV) $(LIBIBERTY) $(SYSLIBS)
+LIBDEPS = $(LIBINTL_DEP) $(LIBICONV_DEP) $(LIBIBERTY)
 # Default is no TGT_LIB; one might be passed down or something
 TGT_LIB =
-TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) $(LIBINTL)
../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)
+TOOLS_LIBS = $(EXTRA_GNATTOOLS_OBJS) targext.o link.o $(LIBGNAT) $(LIBINTL)
$(LIBICONV) ../../../libiberty/libiberty.a $(SYSLIBS) $(TGT_LIB)

 # Convert the target variable into a space separated list of architecture,
 # manufacturer, and operating system and assign each of those to its own

with looks similar to the one in comment #4.


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