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: 08 Jun 2001 00:20:32 -0300
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <Pine.LNX.4.10.10105031817070.26373-100000@mars.deadcafe.org>
On May 3, 2001, Jeff Sturm <jsturm@one-point.com> wrote:
> On 3 May 2001, Alexandre Oliva wrote:
>> On May 3, 2001, Jeff Sturm <jsturm@one-point.com> wrote:
>> > LD_FOR_TARGET is `ld' for native builds. Hmm... that's not what gcc uses.
>>
>> Hmm... This gave me an idea. Does this help?
> Thanks. This worked as expected once I added a few missing semicolons.
> Revised patch follows.
Thanks, I'm finally checking this in, in mainline and branch, per Mark
Mitchell's request.
Index: ChangeLog
from Alexandre Oliva <aoliva@redhat.com>, Jeff Sturm <jsturm@one-point.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.82
diff -u -p -r1.82 Makefile.in
--- Makefile.in 2001/05/10 20:51:52 1.82
+++ Makefile.in 2001/06/08 03:19:22
@@ -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