summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-cross.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-cross.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc15
1 files changed, 2 insertions, 13 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index c04177df5a..68e33c7358 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -63,19 +63,8 @@ do_compile () {
63 export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}" 63 export CXXFLAGS_FOR_TARGET="${TARGET_CXXFLAGS}"
64 export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}" 64 export LDFLAGS_FOR_TARGET="${TARGET_LDFLAGS}"
65 65
66 # Prevent native/host sysroot path from being used in configargs.h header, 66 remove_sysroot_paths_from_configargs '/host'
67 # as it will be rewritten when used by other sysroots preventing support 67 remove_sysroot_paths_from_checksum_options '${STAGING_DIR_HOST}' '/host'
68 # for gcc plugins
69 oe_runmake configure-gcc
70 sed -i 's@${STAGING_DIR_TARGET}@/host@g' ${B}/gcc/configargs.h
71 sed -i 's@${STAGING_DIR_HOST}@/host@g' ${B}/gcc/configargs.h
72
73 # Prevent sysroot/workdir paths from being used in checksum-options.
74 # checksum-options is used to generate a checksum which is embedded into
75 # the output binary.
76 oe_runmake TARGET-gcc=checksum-options all-gcc
77 sed -i 's@${DEBUG_PREFIX_MAP}@@g' ${B}/gcc/checksum-options
78 sed -i 's@${STAGING_DIR_HOST}@/host@g' ${B}/gcc/checksum-options
79 68
80 oe_runmake all-host configure-target-libgcc 69 oe_runmake all-host configure-target-libgcc
81 (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h) 70 (cd ${B}/${TARGET_SYS}/libgcc; oe_runmake enable-execute-stack.c unwind.h md-unwind-support.h sfp-machine.h gthr-default.h)