summaryrefslogtreecommitdiff
path: root/meta/packages
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-07-22 15:27:35 +0100
committerJoshua Lock <josh@linux.intel.com>2010-07-22 15:47:01 +0100
commit410fc8dde810fb2bcaca54e34fcaf0a667d54098 (patch)
tree9a3f9d0261bf574024fd142413d3ff206c153af2 /meta/packages
parentc9602c5feb9a2694446363e978e75ad716008b5d (diff)
downloadopenembedded-core-410fc8dde810fb2bcaca54e34fcaf0a667d54098.tar.gz
openembedded-core-410fc8dde810fb2bcaca54e34fcaf0a667d54098.tar.bz2
openembedded-core-410fc8dde810fb2bcaca54e34fcaf0a667d54098.zip
meta-toolchain: set appropriate compiler flags in the environment script
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/meta/meta-toolchain.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/packages/meta/meta-toolchain.bb b/meta/packages/meta/meta-toolchain.bb
index ca24dbd807..fad9a3406a 100644
--- a/meta/packages/meta/meta-toolchain.bb
+++ b/meta/packages/meta/meta-toolchain.bb
@@ -96,6 +96,8 @@ do_populate_sdk() {
cd ${SDK_OUTPUT}${SDKTARGETSYSROOT}/usr
ln -s /usr/local local
fi
+ echo 'export CFLAGS="${TARGET_CC_ARCH}"' >> $script
+ echo 'export CXXFLAGS="${TARGET_CC_ARCH}"' >> $script
echo "alias opkg='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKPATHNATIVE}/${sysconfdir}/opkg-sdk.conf -o ${SDKPATHNATIVE}'" >> $script
echo "alias opkg-target='LD_LIBRARY_PATH=${SDKPATHNATIVE}${libdir_nativesdk} ${SDKPATHNATIVE}${bindir_nativesdk}/opkg-cl -f ${SDKTARGETSYSROOT}${sysconfdir}/opkg.conf -o ${SDKTARGETSYSROOT}'" >> $script