summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-04-25 12:08:26 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-27 15:11:47 +0100
commitd18f8178b80bb962d17126caf310ae7072a1493e (patch)
tree2624a725a3322668ce637b4850d68b0d4a0b1f06 /meta/recipes-devtools
parentb3426e89f567488416fac0230bb5b5240a900a70 (diff)
downloadpoky-d18f8178b80bb962d17126caf310ae7072a1493e.tar.gz
gcc-target: Create a LTO plugin symlink in bfd-plugins directory
This directory is scanned by binutils provided ar,ranlib,nm for plugins that it can load automatically, putting liblto_plugin.so in their means we do not need gcc-ar, gcc-nm, gcc-ranlib particularly as normal ar/ranlib/nm tools will work equally well as they can now use this linker plugin by default This also mean we can revert back to using ar/ranlib/nm as default providers for AR/NM/RANLIB on target (From OE-Core rev: 5aae5812223792d5e5bd57e024de50fbcd1e6da5) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 164a669aad..0ee3e83d42 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -54,6 +54,7 @@ FILES_${PN} = "\
54 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \ 54 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib*${SOLIBS} \
55 ${gcclibdir}/${TARGET_SYS}/${BINV}/include \ 55 ${gcclibdir}/${TARGET_SYS}/${BINV}/include \
56 ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \ 56 ${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
57 ${libdir}/bfd-plugins/*.so \
57" 58"
58INSANE_SKIP_${PN} += "dev-so" 59INSANE_SKIP_${PN} += "dev-so"
59RRECOMMENDS_${PN} += "\ 60RRECOMMENDS_${PN} += "\
@@ -215,7 +216,8 @@ do_install () {
215 ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${base_libdir}/cpp 216 ln -sf ${bindir}/${TARGET_PREFIX}cpp ${D}${base_libdir}/cpp
216 ln -sf g++ c++ 217 ln -sf g++ c++
217 ln -sf gcc cc 218 ln -sf gcc cc
218 219 install -d ${D}${libdir}/bfd-plugins
220 ln -sf ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/liblto_plugin.so ${D}${libdir}/bfd-plugins/liblto_plugin.so
219 chown -R root:root ${D} 221 chown -R root:root ${D}
220} 222}
221 223