From 3c819c6330effe9e3fbe92fb636cc8d610b380e0 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 15 May 2008 13:04:49 +0000 Subject: 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 --- meta/packages/meta/meta-toolchain.bb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'meta/packages') 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 -- cgit v1.2.3