diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2016-02-16 04:14:55 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-18 07:39:29 +0000 |
commit | 7a11650ebcb14f8a7cb810e2e6a05294fbccc57a (patch) | |
tree | bcc44d7e2e37a31bac1495f54c43fa43a0d8785d /meta/recipes-devtools/gcc/gcc-4.9.inc | |
parent | ef301191858db811dc9ca6e30cfd487895b4c021 (diff) | |
download | poky-7a11650ebcb14f8a7cb810e2e6a05294fbccc57a.tar.gz |
bitbake.conf: use target path as compile dir in debugging info
In debugging information, it uses target paths rather than
build ones as compile dir.
...
-fdebug-prefix-map=old=new
When compiling files in directory old, record debugging
information describing them as in new instead.
...
Compile without this fix:
objdump -g git/test.o
...
The Directory Table (offset 0x1b):
| 1 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/x86_64-linux/usr/lib/
i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/5.3.0/include
| 2 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include/bits
| 3 /buildarea/raid0/hjia/build-20160119-yocto-buildpath/tmp/sysroots/lib32-qemux86-64/usr/include
...
Compile with this fix:
objdump -g git/test.o
...
The Directory Table (offset 0x1b):
| 1 /usr/lib/i686-pokymllib32-linux.lib32-gcc-cross-initial-i686/gcc/i686-pokymllib32-linux/
5.3.0/include
| 2 /usr/include/bits
| 3 /usr/include
...
[YOCTO #7058]
(From OE-Core rev: 0fe42caad8f7c142741a28b09458f4e2fdf289ff)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.9.inc')
0 files changed, 0 insertions, 0 deletions