mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 10:59:41 +01:00
gcc-cross-canadian: Install LTO linker plugin to BFD searchable location
This helps binutils provided tools ar/ranlib/nm to find the LTO linker plugin automatically as well which makes it equivalent to gcc-ar/gcc-nm/gcc-ranlib (From OE-Core rev: 7d8d0b90bea7ea01e1e9ab0ff98f22431f68a506) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -75,6 +75,7 @@ FILES_${PN} = "\
|
||||
${gcclibdir}/${TARGET_SYS}/${BINV}/include-fixed \
|
||||
${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/include/ \
|
||||
${gcclibdir}/${TARGET_SYS}/${BINV}/plugin/gtype.* \
|
||||
${libdir}/bfd-plugins/*.so \
|
||||
${includedir}/c++/${BINV} \
|
||||
${prefix}/${TARGET_SYS}/bin/* \
|
||||
${prefix}/${TARGET_SYS}/lib/* \
|
||||
@@ -92,6 +93,8 @@ EXEEXT = ""
|
||||
|
||||
# Compute how to get from libexecdir to bindir in python (easier than shell)
|
||||
BINRELPATH = "${@os.path.relpath(d.expand("${bindir}"), d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"))}"
|
||||
# linker plugin path
|
||||
LIBRELPATH = "${@os.path.relpath(d.expand("${libexecdir}/gcc/${TARGET_SYS}/${BINV}"), d.expand("${libdir}/bfd-plugins"))}"
|
||||
|
||||
do_install () {
|
||||
( cd ${B}/${TARGET_SYS}/libgcc; oe_runmake 'DESTDIR=${D}' install-unwind_h-forbuild install-unwind_h )
|
||||
@@ -136,8 +139,12 @@ do_install () {
|
||||
cp ${S}/libquadmath/quadmath.h ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/
|
||||
cp ${S}/libquadmath/quadmath_weak.h ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/include/
|
||||
|
||||
# install LTO linker plugins where binutils tools can find it
|
||||
install -d ${D}${libdir}/bfd-plugins
|
||||
ln -sf ${LIBRELPATH}/liblto_plugin.so ${D}${libdir}/bfd-plugins/liblto_plugin.so
|
||||
|
||||
chown -R root:root ${D}
|
||||
|
||||
|
||||
cross_canadian_bindirlinks
|
||||
|
||||
for i in linux ${CANADIANEXTRAOS}
|
||||
|
||||
Reference in New Issue
Block a user