------- Additional Comments From ericw at evcohs dot com  2004-10-11 22:18 -------
Subject: Re:  Double target prefixed gcjh

tromey at gcc dot gnu dot org wrote:

>------- Additional Comments From tromey at gcc dot gnu dot org  2004-10-11 21:20 
>-------
>I suppose you could try this.
>I made it by looking at what other install rules are
>doing in this area.  I'm not at all sure it is correct.
>
>Index: Make-lang.in
>===================================================================
>RCS file: /cvs/gcc/gcc/gcc/java/Make-lang.in,v
>retrieving revision 1.145
>diff -u -r1.145 Make-lang.in
>--- Make-lang.in 22 Sep 2004 11:21:21 -0000 1.145
>+++ Make-lang.in 11 Oct 2004 21:17:52 -0000
>@@ -207,7 +207,9 @@
>           rm -f $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
>           $(INSTALL_PROGRAM) $$tool$(exeext)
>$(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
>           chmod a+x $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
>-          if [ $$tool = gcjh ]; then \
>+          if [ -f $(GCJ)-cross$(exeext) ]; then \
>+            true; \
>+          elif [ $$tool = gcjh ]; then \
>             rm -f $(DESTDIR)$(bindir)/$(GCJH_TARGET_INSTALL_NAME)$(exeext); \
>             ( cd $(DESTDIR)$(bindir) && \
>               $(LN) $$tool_transformed_name$(exeext)
>$(GCJH_TARGET_INSTALL_NAME)$(exeext) ); \
>
>
>  
>

Patch works for the avr target. Thanks!
Eric


-- 


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

Reply via email to