This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: solaris2 libjava 500 failures
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: solaris2 libjava 500 failures
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 03 May 2001 07:20:33 -0300
- Cc: gcc-bugs at gcc dot gnu dot org, java at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.21.0105022255060.729-100000@localhost.localdomain>
On May 3, 2001, Jeff Sturm <jsturm@one-point.com> wrote:
> On closer inspection, ltconfig is seeing --with-gnu-ld from configure, so
> it is only doing as it is told.
Well, given that this flag may come from libtool.m4, we still can't
rule libtool out as the source of the problem.
> (Next time I won't be so quick to blame libtool, I promise!)
:-D
> LD_FOR_TARGET is `ld' for native builds. Hmm... that's not what gcc uses.
Hmm... This gave me an idea. Does this help?
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): If
gcc/xgcc is built, use -print-prog-name to find out the program
name to use.
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/Makefile.in,v
retrieving revision 1.81
diff -u -p -r1.81 Makefile.in
--- Makefile.in 2001/04/13 10:14:47 1.81
+++ Makefile.in 2001/05/03 10:17:55
@@ -230,6 +230,8 @@ GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/
AS_FOR_TARGET = ` \
if [ -f $$r/gas/as-new ] ; then \
echo $$r/gas/as-new ; \
+ elif [ -f $$r/gcc/xgcc ]; then \
+ $(CC_FOR_TARGET) -print-prog-name=as \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(AS); \
@@ -241,6 +243,8 @@ AS_FOR_TARGET = ` \
LD_FOR_TARGET = ` \
if [ -f $$r/ld/ld-new ] ; then \
echo $$r/ld/ld-new ; \
+ elif [ -f $$r/gcc/xgcc ]; then \
+ $(CC_FOR_TARGET) -print-prog-name=ld \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(LD); \
@@ -300,6 +304,8 @@ RANLIB_FOR_TARGET = ` \
NM_FOR_TARGET = ` \
if [ -f $$r/binutils/nm-new ] ; then \
echo $$r/binutils/nm-new ; \
+ elif [ -f $$r/gcc/xgcc ]; then \
+ $(CC_FOR_TARGET) -print-prog-name=nm \
else \
if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
echo $(NM); \
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me