summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-common.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-common.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-common.inc b/meta/recipes-devtools/gcc/gcc-common.inc
index fe112d9d0a..ed41b0ff8a 100644
--- a/meta/recipes-devtools/gcc/gcc-common.inc
+++ b/meta/recipes-devtools/gcc/gcc-common.inc
@@ -88,3 +88,20 @@ python workshared_clean () {
88 bb.note("Removing " + dir) 88 bb.note("Removing " + dir)
89 oe.path.remove(dir) 89 oe.path.remove(dir)
90} 90}
91
92do_headerfix () {
93 # Change the default dynamic linker path, in case $base_liddir is non-standard
94 # (e.g. in multilib or sdk cases)
95 #
96 # We want something like the following:
97 # #define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
98 # becomes
99 # #define GLIBC_DYNAMIC_LINKER64 SYSTEMLIBS_DIR "ld-linux-x86-64.so.2"
100 #
101 sed -i ${S}/gcc/config/*/linux*.h -e \
102 's#\(GLIBC_DYNAMIC_LINKER[^ ]*\) \( *"/lib.*\)/\(.*\)#\1 SYSTEMLIBS_DIR "\3#'
103}
104
105addtask headerfix after do_unpack before do_patch
106
107do_headerfix[vardepvalue] = "PATH"