From f7512f6b5de9ea1988e9aa4ab1998ebcf3b0fe0d Mon Sep 17 00:00:00 2001
From: rofl0r <retnyg@gmx.net>
Date: Mon, 2 Nov 2015 15:28:06 +0000
Subject: [PATCH] install only the components of gcc we actually want

additionally force the install step to be non-parallel, as there's
something broken (at least with gcc 4.8.5, some commands get executed
in the parent shell after make already finished).
---
 Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 34e7c91..2877cd3 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,12 @@ steps/build_gcc: steps/configure_gcc
 	touch $@
 
 steps/install_gcc: steps/build_gcc
-	cd gcc-$(GCC_VER)/build && $(MAKE) install
+	cd gcc-$(GCC_VER)/build && $(MAKE) -j1 \
+		install-gcc \
+		install-lto-plugin \
+		install-target-libgcc \
+		install-target-libssp \
+		install-target-libstdc++-v3
 	touch $@