From 27f31bcc982d5cf56846f10e33d881bf8c5da3af Mon Sep 17 00:00:00 2001
From: Oliver Smith <ollieparanoid@bitmessage.ch>
Date: Sun, 30 Sep 2018 04:37:47 +0200
Subject: [PATCH] main/gcc6: symlink for objcopy is also required

With this commit, pmbootstrap!1699 and a few changes in a linux aport,
it finally compiled successfully with gcc6 \o/

Details described in #103.
---
 main/gcc6/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/gcc6/APKBUILD b/main/gcc6/APKBUILD
index d1d25f887b0..314b9a67ffa 100644
--- a/main/gcc6/APKBUILD
+++ b/main/gcc6/APKBUILD
@@ -1,6 +1,6 @@
 pkgname=gcc6
 pkgver=6.4.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Old GCC for old vendor kernels (C compiler only)"
 url="http://gcc.gnu.org"
 arch="all"
@@ -401,7 +401,7 @@ package() {
 		# Link binutils to gcc6-* (so 'CROSS_COMPILE=gcc6-...' works)
 		echo "Link binutils to gcc6-*"
 		mkdir -p "$pkgdir/usr/bin"
-		for i in "ld" "ar" "nm"; do
+		for i in "ld" "ar" "nm" "objcopy"; do
 			ln -sv "/usr/bin/$CTARGET-$i" \
 				"$pkgdir/usr/bin/gcc6-$CTARGET-$i"
 		done
-- 
GitLab