diff options
author | Richard Purdie <richard@openedhand.com> | 2008-05-15 13:04:49 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-05-15 13:04:49 +0000 |
commit | 3c819c6330effe9e3fbe92fb636cc8d610b380e0 (patch) | |
tree | fea47c571b4e1f0ac92f2fa33c5f14b48563a05b /meta | |
parent | a71df5506ad870dd64c91ae5490bf2611463b308 (diff) | |
download | openembedded-core-3c819c6330effe9e3fbe92fb636cc8d610b380e0.tar.gz openembedded-core-3c819c6330effe9e3fbe92fb636cc8d610b380e0.tar.bz2 openembedded-core-3c819c6330effe9e3fbe92fb636cc8d610b380e0.tar.xz openembedded-core-3c819c6330effe9e3fbe92fb636cc8d610b380e0.zip |
meta-toolchain: Add some extra useful configuration variables and darwin specific tweaks
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4476 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta')
-rw-r--r-- | meta/packages/meta/meta-toolchain.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb index b5dc6ccca..497c76fd0 100644 --- a/meta/packages/meta/meta-toolchain.bb +++ b/meta/packages/meta/meta-toolchain.bb @@ -99,6 +99,15 @@ do_populate_sdk() { echo 'export PKG_CONFIG_SYSROOT_DIR=${prefix}/${TARGET_SYS}' >> $script echo 'export PKG_CONFIG_PATH=${prefix}/${TARGET_SYS}${layout_libdir}/pkgconfig' >> $script echo 'export CONFIG_SITE=${prefix}/site-config' >> $script + echo 'export CC=${TARGET_PREFIX}gcc' >> $script + echo 'export CONFIGURE_FLAGS="--target=${TARGET_SYS} --host=${HOST_SYS}"' >> $script + if [ "${TARGET_OS}" = "darwin8" ]; then + echo 'export TARGET_CFLAGS="-I${prefix}/${TARGET_SYS}${layout_includedir}"' >> $script + echo 'export TARGET_LDFLAGS="-L${prefix}/${TARGET_SYS}${layout_libdir}"' >> $script + # Workaround darwin toolchain sysroot path problems + cd ${SDK_OUTPUT}/usr + ln -s local /usr/local + fi echo "alias opkg='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${sysconfdir}/opkg-sdk.conf -o ${prefix}'" >> $script echo "alias opkg-target='LD_LIBRARY_PATH=${prefix}/lib ${prefix}/bin/opkg-cl -f ${prefix}/${TARGET_SYS}${layout_sysconfdir}/opkg.conf -o ${prefix}/${TARGET_SYS}'" >> $script |