[lto] Install lto-wrapper

Diego Novillo dnovillo@google.com
Tue Dec 2 23:46:00 GMT 2008


lto-wrapper was not being installed in libexec, causing failures
when using an installed tree.

Tested on x86_64.


Diego.


	* Makefile.in (install-lto-wrapper): New.
	(install): Use it.

Index: Makefile.in
===================================================================
--- Makefile.in	(revision 142371)
+++ Makefile.in	(working copy)
@@ -4204,7 +4204,7 @@ maintainer-clean:
 # broken is small.
 install: install-common $(INSTALL_HEADERS) \
     install-cpp install-man install-info install-@POSUB@ \
-    install-driver
+    install-driver install-lto-wrapper
 
 # Handle cpp installation.
 install-cpp: installdirs cpp$(exeext)
@@ -4479,6 +4479,10 @@ install-collect2: collect2 installdirs
 # Install the driver program as $(libsubdir)/gcc for collect2.
 	$(INSTALL_PROGRAM) xgcc$(exeext) $(DESTDIR)$(libexecsubdir)/gcc$(exeext)
 
+# Install lto-wrapper.
+install-lto-wrapper: lto-wrapper$(exeext)
+	$(INSTALL_PROGRAM) lto-wrapper$(exeext) $(DESTDIR)$(libexecsubdir)/lto-wrapper$(exeext)
+	
 # Cancel installation by deleting the installed files.
 uninstall: lang.uninstall
 	-rm -rf $(DESTDIR)$(libsubdir)



More information about the Gcc-patches mailing list