Patchwork [gccgo] Install TARGET-gccgo

login
register
mail settings
Submitter Ian Taylor
Date Nov. 17, 2010, 12:48 a.m.
Message ID <mcreiak4vxv.fsf@google.com>
Download mbox | patch
Permalink /patch/71490/
State New
Headers show

Comments

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

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: