summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-multilib-config.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-06 12:52:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-08 13:11:28 +0100
commit4666045677c9f338e2e936f67fb7db2e04a58d4f (patch)
tree5cee62bd62132f28f375ffb2a68f6abbd1e790ac /meta/recipes-devtools/gcc/gcc-multilib-config.inc
parent5992d2971f18acf239ccac228e2bde0ca85bb55f (diff)
downloadpoky-4666045677c9f338e2e936f67fb7db2e04a58d4f.tar.gz
gcc: Handle uclibc linker relocation for multilib support
We need to handle the UCLIBC_* linker variables in the same way as we do the GLIBC_* ones to allow uclibc multilib to work properly. (From OE-Core rev: 025ec5958b7e1fd71caa0079ec3c573126b30886) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-multilib-config.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-multilib-config.inc11
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-multilib-config.inc b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
index 1eafeb4768..81d664a1b3 100644
--- a/meta/recipes-devtools/gcc/gcc-multilib-config.inc
+++ b/meta/recipes-devtools/gcc/gcc-multilib-config.inc
@@ -26,7 +26,8 @@ python gcc_multilib_setup() {
26 26
27 bb.utils.remove(build_conf_dir, True) 27 bb.utils.remove(build_conf_dir, True)
28 ml_globs = ('%s/*/t-linux64' % src_conf_dir, 28 ml_globs = ('%s/*/t-linux64' % src_conf_dir,
29 '%s/*/linux64.h' % src_conf_dir) 29 '%s/*/linux64.h' % src_conf_dir,
30 '%s/linux.h' % src_conf_dir)
30 31
31 # copy the target multilib config files to ${B} 32 # copy the target multilib config files to ${B}
32 for ml_glob in ml_globs: 33 for ml_glob in ml_globs:
@@ -93,6 +94,14 @@ python gcc_multilib_setup() {
93 r'\1' + wrap_libdir(libdirx32) + r'\3'), 94 r'\1' + wrap_libdir(libdirx32) + r'\3'),
94 (r'^(#define\s*GLIBC_DYNAMIC_LINKERN32\s*)(\S+)(\s*\".*\")$', 95 (r'^(#define\s*GLIBC_DYNAMIC_LINKERN32\s*)(\S+)(\s*\".*\")$',
95 r'\1' + wrap_libdir(libdirn32) + r'\3'), 96 r'\1' + wrap_libdir(libdirn32) + r'\3'),
97 (r'^(#define\s*UCLIBC_DYNAMIC_LINKER32\s*)(\S+)(\s*\".*\")$',
98 r'\1' + wrap_libdir(libdir32) + r'\3'),
99 (r'^(#define\s*UCLIBC_DYNAMIC_LINKER64\s*)(\S+)(\s*\".*\")$',
100 r'\1' + wrap_libdir(libdir64) + r'\3'),
101 (r'^(#define\s*UCLIBC_DYNAMIC_LINKERN32\s*)(\S+)(\s*\".*\")$',
102 r'\1' + wrap_libdir(libdirn32) + r'\3'),
103 (r'^(#define\s*UCLIBC_DYNAMIC_LINKER\s*)(\S+)(\s*\".*\")$',
104 r'\1' + wrap_libdir(libdir32) + r'\3'),
96 ] 105 ]
97 106
98 for (i, line) in enumerate(filelines): 107 for (i, line) in enumerate(filelines):