summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei.gherzan@huawei.com>2022-01-06 15:19:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-07 14:37:50 +0000
commit92167f8e02bb6fbbe1ee6a6678525a0ae27b00a5 (patch)
tree73791fdd2f893e53518a67738c99a3f16923ce5e /meta/lib
parentbb252e1e31a127abd9f9b111897e007d1bd88f11 (diff)
downloadopenembedded-core-contrib-92167f8e02bb6fbbe1ee6a6678525a0ae27b00a5.tar.gz
gcc: Fix compile of gcc plugins
Without this, compiling gcc plugins will fail with an error similar to: [...] fatal error: ./config/i386/linux64.h: No such file or directory [...] In Yocto, we set up compiling gcc-cross out of tree. Which in turn makes the generated headers end up in B. The tm.h header will include generated headers that are expected in plugin/include/config/*. For example, the linux64.h header, when generating gcc-cross for x86-64, will end up in tm.h header as: include "./config/i386/linux64.h" On the other hand, the make rule `install-plugin` in gcc/Makefile.in will install the linux64.h assuming that it is generated in the sources directory and because this is not the case in our setup, the Makefile ends up installing it in plugin_includedir/`basename $$path` which ends up installing the header in [..]plugin/include as opposed to [..]plugin/include/config/i386 (as expected by the generator of tm.h). The included patch modifies the Makefile rule to match the assumption of gcc-cross being compiled out of tree. Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
0 files changed, 0 insertions, 0 deletions