diff options
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-initial.inc | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-initial.inc b/meta/recipes-devtools/gcc/gcc-cross-initial.inc index dd35681c98..5c0208a3fa 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-initial.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-initial.inc | |||
| @@ -24,7 +24,7 @@ EXTRA_OECONF = "\ | |||
| 24 | --enable-languages=c \ | 24 | --enable-languages=c \ |
| 25 | --program-prefix=${TARGET_PREFIX} \ | 25 | --program-prefix=${TARGET_PREFIX} \ |
| 26 | --with-sysroot=/not/exist \ | 26 | --with-sysroot=/not/exist \ |
| 27 | --with-build-sysroot=${GCCCROSS_BUILDSYSROOT} \ | 27 | --with-build-sysroot=${STAGING_DIR_TARGET} \ |
| 28 | ${EXTRA_OECONF_INITIAL} \ | 28 | ${EXTRA_OECONF_INITIAL} \ |
| 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} \ | 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '--with-ld=${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX}ld.bfd', '', d)} \ |
| 30 | ${EXTRA_OECONF_GCC_FLOAT} \ | 30 | ${EXTRA_OECONF_GCC_FLOAT} \ |
| @@ -33,17 +33,6 @@ EXTRA_OECONF = "\ | |||
| 33 | 33 | ||
| 34 | EXTRA_OECONF += "--with-native-system-header-dir=${SYSTEMHEADERS}" | 34 | EXTRA_OECONF += "--with-native-system-header-dir=${SYSTEMHEADERS}" |
| 35 | 35 | ||
| 36 | GCCCROSS_BUILDSYSROOT = "${B}/tmpsysroot" | ||
| 37 | |||
| 38 | do_configure_prepend () { | ||
| 39 | sysr=${GCCCROSS_BUILDSYSROOT}${target_includedir} | ||
| 40 | mkdir -p $sysr | ||
| 41 | for t in linux asm asm-generic; do | ||
| 42 | rm -f $sysr/$t | ||
| 43 | ln -s ${STAGING_DIR_TARGET}${target_includedir}/$t $sysr/ | ||
| 44 | done | ||
| 45 | } | ||
| 46 | |||
| 47 | do_compile () { | 36 | do_compile () { |
| 48 | oe_runmake all-gcc configure-target-libgcc | 37 | oe_runmake all-gcc configure-target-libgcc |
| 49 | } | 38 | } |
