[gccgo] Install TARGET-gccgo

Submitted by Ian Taylor on Nov. 17, 2010, 12:48 a.m.

Details

Message ID mcreiak4vxv.fsf@google.com
State New
Headers show

Commit Message

Ian Taylor Nov. 17, 2010, 12:48 a.m.
This patch installs TARGET-gccgo alongside gccgo, except when they
happen to be the same file.  Committed to gccgo branch.

Ian

Patch hide | download patch | download mbox

Index: Make-lang.in
===================================================================
--- Make-lang.in	(revision 166832)
+++ Make-lang.in	(working copy)
@@ -90,7 +90,14 @@  lang_checks += check-go
 
 go.install-common: installdirs
 	-rm -f $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)
+	-rm -f $(DESTDIR)$(bindir)/$(GCCGO_TARGET_INSTALL_NAME)$(exeext)
 	$(INSTALL_PROGRAM) gccgo$(exeext) $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext)
+	if test -f $(DESTDIR)$(bindir)$(GCCGO_TARGET_INSTALL_NAME)$(exeext); then \
+	  :; \
+	else \
+	  cd $(DESTDIR)$(bindir) && \
+	   $(LN) $(GCCGO_INSTALL_NAME)$(exeext) $(GCCGO_TARGET_INSTALL_NAME)$(exeext); \
+	fi
 
 go.install-plugin:
 go.install-man: