diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-04-25 12:08:26 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-27 15:11:47 +0100 |
commit | d18f8178b80bb962d17126caf310ae7072a1493e (patch) | |
tree | 2624a725a3322668ce637b4850d68b0d4a0b1f06 /meta | |
parent | b3426e89f567488416fac0230bb5b5240a900a70 (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-target.inc | 4 |
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 | " |
58 | INSANE_SKIP_${PN} += "dev-so" | 59 | INSANE_SKIP_${PN} += "dev-so" |
59 | RRECOMMENDS_${PN} += "\ | 60 | RRECOMMENDS_${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 | ||