diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/toolchain-scripts.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass index 5fb6cd3aaf..5cba403dc7 100644 --- a/meta/classes/toolchain-scripts.bbclass +++ b/meta/classes/toolchain-scripts.bbclass | |||
@@ -49,7 +49,7 @@ toolchain_create_tree_env_script () { | |||
49 | echo 'export CXX=${TARGET_PREFIX}g++' >> $script | 49 | echo 'export CXX=${TARGET_PREFIX}g++' >> $script |
50 | echo 'export GDB=${TARGET_PREFIX}gdb' >> $script | 50 | echo 'export GDB=${TARGET_PREFIX}gdb' >> $script |
51 | echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script | 51 | echo 'export TARGET_PREFIX=${TARGET_PREFIX}' >> $script |
52 | echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${BUILD_SYS}"' >> $script | 52 | echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${TARGET_SYS} --build=${BUILD_SYS} --with-libtool-sysroot=${STAGING_DIR_TARGET}"' >> $script |
53 | if [ "${TARGET_OS}" = "darwin8" ]; then | 53 | if [ "${TARGET_OS}" = "darwin8" ]; then |
54 | echo 'export TARGET_CFLAGS="-I${STAGING_DIR}${MACHINE}${includedir}"' >> $script | 54 | echo 'export TARGET_CFLAGS="-I${STAGING_DIR}${MACHINE}${includedir}"' >> $script |
55 | echo 'export TARGET_LDFLAGS="-L${STAGING_DIR}${MACHINE}${libdir}"' >> $script | 55 | echo 'export TARGET_LDFLAGS="-L${STAGING_DIR}${MACHINE}${libdir}"' >> $script |
@@ -57,9 +57,10 @@ toolchain_create_tree_env_script () { | |||
57 | cd ${SDK_OUTPUT}${SDKTARGETSYSROOT}/usr | 57 | cd ${SDK_OUTPUT}${SDKTARGETSYSROOT}/usr |
58 | ln -s /usr/local local | 58 | ln -s /usr/local local |
59 | fi | 59 | fi |
60 | echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script | 60 | echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"' >> $script |
61 | echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script | 61 | echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"' >> $script |
62 | echo 'export LDFLAGS="${TARGET_LD_ARCH}"' >> $script | 62 | echo 'export LDFLAGS="${TARGET_LD_ARCH} --sysroot=${STAGING_DIR_TARGET}"' >> $script |
63 | echo 'export CPPFLAGS="${TARGET_CC_ARCH} --sysroot=${STAGING_DIR_TARGET}"' >> $script | ||
63 | echo 'export OECORE_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script | 64 | echo 'export OECORE_NATIVE_SYSROOT="${STAGING_DIR_NATIVE}"' >> $script |
64 | echo 'export OECORE_TARGET_SYSROOT="${STAGING_DIR_TARGET}"' >> $script | 65 | echo 'export OECORE_TARGET_SYSROOT="${STAGING_DIR_TARGET}"' >> $script |
65 | echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script | 66 | echo 'export OECORE_ACLOCAL_OPTS="-I ${STAGING_DIR_NATIVE}/usr/share/aclocal"' >> $script |