aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/APKBUILD
diff options
context:
space:
mode:
authorAlex <alex_y_xu@yahoo.ca>2020-05-17 07:06:23 +0000
committerAriadne Conill <ariadne@dereferenced.org>2020-05-17 07:06:23 +0000
commite296f565dbf916871242d0551922984f4e2e8b8c (patch)
tree0c03edf6dda6c1f419b39aaff77dabf2209c5fbc /main/gcc/APKBUILD
parent359d444c4be2f43ea73386208c7fe40a1756d4ca (diff)
downloadaports-e296f565dbf916871242d0551922984f4e2e8b8c.tar.gz
aports-e296f565dbf916871242d0551922984f4e2e8b8c.tar.bz2
aports-e296f565dbf916871242d0551922984f4e2e8b8c.tar.xz
main/gcc: add liblto_plugin.so symlink
enable lto with regular ar/ranlib to not require gcc-ar/ranlib
Diffstat (limited to 'main/gcc/APKBUILD')
-rw-r--r--main/gcc/APKBUILD4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 2efdcaedcd..de29b47d80 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -418,6 +418,10 @@ done
exec gcc $_flavor ${1+"$@"}
EOF
chmod 755 "$pkgdir"/usr/bin/c?9
+
+ # install lto plugin so regular binutils may use it
+ mkdir -p "$pkgdir"/usr/lib/bfd-plugins
+ ln -s /$_gcclibexec/liblto_plugin.so "$pkgdir/usr/lib/bfd-plugins/"
fi
}