diff options
-rw-r--r-- | meta/packages/gcc/gcc-configure-sdk.inc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/packages/gcc/gcc-configure-sdk.inc b/meta/packages/gcc/gcc-configure-sdk.inc index c04b93e568..6738496219 100644 --- a/meta/packages/gcc/gcc-configure-sdk.inc +++ b/meta/packages/gcc/gcc-configure-sdk.inc | |||
@@ -6,6 +6,7 @@ USE_NLS = '${@base_conditional( "TARGET_OS", "linux-uclibcgnueabi", "no", "", d | |||
6 | 6 | ||
7 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \ | 7 | EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} \ |
8 | --with-gxx-include-dir=${prefix}/${TARGET_SYS}${target_includedir}/c++/${BINV}/ \ | 8 | --with-gxx-include-dir=${prefix}/${TARGET_SYS}${target_includedir}/c++/${BINV}/ \ |
9 | --with-build-time-tools=${CROSS_DIR}/${TARGET_SYS}/bin \ | ||
9 | --with-sysroot=${prefix}/${TARGET_SYS} \ | 10 | --with-sysroot=${prefix}/${TARGET_SYS} \ |
10 | --with-build-sysroot=${STAGING_DIR_TARGET}" | 11 | --with-build-sysroot=${STAGING_DIR_TARGET}" |
11 | 12 | ||
@@ -16,7 +17,9 @@ EXTRA_OECONF_PATHS = "--with-local-prefix=${STAGING_DIR_TARGET}${target_prefix} | |||
16 | export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar" | 17 | export AR_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ar" |
17 | export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as" | 18 | export AS_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/as" |
18 | export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool" | 19 | export DLLTOOL_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/dlltool" |
19 | export LD_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/ld" | 20 | export CC_FOR_TARGET = "${TARGET_SYS}-gcc" |
21 | export CXX_FOR_TARGET = "${TARGET_SYS}-g++" | ||
22 | export LD_FOR_TARGET = "${TARGET_SYS}-ld" | ||
20 | export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo" | 23 | export LIPO_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/lipo" |
21 | export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm" | 24 | export NM_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/nm" |
22 | export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump" | 25 | export OBJDUMP_FOR_TARGET = "${CROSS_DIR}/${TARGET_SYS}/bin/objdump" |
@@ -41,11 +44,5 @@ do_configure () { | |||
41 | } | 44 | } |
42 | 45 | ||
43 | do_compile () { | 46 | do_compile () { |
44 | export CC="${BUILD_CC}" | 47 | oe_runmake |
45 | export AR_FOR_TARGET="${TARGET_SYS}-ar" | ||
46 | export RANLIB_FOR_TARGET="${TARGET_SYS}-ranlib" | ||
47 | export LD_FOR_TARGET="${TARGET_SYS}-ld" | ||
48 | export NM_FOR_TARGET="${TARGET_SYS}-nm" | ||
49 | export CC_FOR_TARGET="${CCACHE} ${TARGET_SYS}-gcc ${TARGET_CC_ARCH}" | ||
50 | base_do_compile | ||
51 | } | 48 | } |