]> code.ossystems Code Review - openembedded-core.git/commit
gcc-5.3/gcc-4.9:replace build path with target path in __FILE__
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 18 Mar 2016 09:01:43 +0000 (05:01 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 22:57:59 +0000 (22:57 +0000)
commit5e3dd820df41ab032893497a9ccea2160c07fe66
tree1a0ceac9142cea5d4a8ee61b29acfd0200ebd67b
parent791eec016792c3f4c04b12ae6ff93c1e23266f87
gcc-5.3/gcc-4.9:replace build path with target path in __FILE__

Similar -fdebug-prefix-map, add option -ffile-prefix-map to map one
directory name (old) to another (new) in __FILE__, __BASE_FILE__and
__builtin_FILE ().

With this patch, it fixes build path issue which caused by __FILE__.
We do not need to use relative path to compile any more.

[YOCTO #7058]

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70268

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/gcc/gcc-4.9.inc
meta/recipes-devtools/gcc/gcc-4.9/0072-support-ffile-prefix-map.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-5.3.inc
meta/recipes-devtools/gcc/gcc-5.3/0054-support-ffile-prefix-map.patch [new file with mode: 0644]