aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-10-02 09:06:56 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-10-04 14:53:30 +0000
commit8fcd735aac308838ee009ccaf45fbef97dd73739 (patch)
tree0c0ab9a62b3d6265992b83aba6eb3bb9b5e6fb68
parentdec9f0ba38811962fc9486559eb5432c36cf4d9c (diff)
downloadmeta-openembedded-contrib-8fcd735aac308838ee009ccaf45fbef97dd73739.tar.gz
meta-openembedded-contrib-8fcd735aac308838ee009ccaf45fbef97dd73739.tar.bz2
meta-openembedded-contrib-8fcd735aac308838ee009ccaf45fbef97dd73739.zip
klibc.bbclass: Pass TUNE_CCARGS in flags
This is needed for ABI compatibility since march defines if -mthumb means thumb1 or thumb2 Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-initramfs/classes/klibc.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-initramfs/classes/klibc.bbclass b/meta-initramfs/classes/klibc.bbclass
index 1ec7b2b05c..b7b72b728b 100644
--- a/meta-initramfs/classes/klibc.bbclass
+++ b/meta-initramfs/classes/klibc.bbclass
@@ -11,6 +11,6 @@ CC_append_armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_
CPP_forcevariable = "${CC} -E"
# klcc uses own optimizations by default. See klcc(1) man file.
-export CFLAGS=""
-export CPPFLAGS=""
-export LDFLAGS=""
+export CFLAGS="${TUNE_CCARGS}"
+export CPPFLAGS="${TUNE_CCARGS}"
+export LDFLAGS="${TUNE_CCARGS}"