diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-09-12 21:19:13 -0700 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-09-18 10:16:23 +0200 |
commit | 7fb5af65575987d394f3a8446eb17df8c8680c5b (patch) | |
tree | 3f792d34fafd9418488fc6dbfd8d5b1d634c4198 | |
parent | 028eeb8ca6809b7f4042fcaf2ec4f3982076f857 (diff) | |
download | meta-openembedded-7fb5af65575987d394f3a8446eb17df8c8680c5b.tar.gz |
klibc.bbclass: Use forcevariable override to define flags
This is required so it can override the CC settings when
clang is used because meta-clang uses toolchain-clang
override to set CC and friends so we need to use higher
order override, forcevariable is highest order.
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.bbclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/meta-initramfs/classes/klibc.bbclass b/meta-initramfs/classes/klibc.bbclass index f864104cfb..c9de58cec6 100644 --- a/meta-initramfs/classes/klibc.bbclass +++ b/meta-initramfs/classes/klibc.bbclass | |||
@@ -3,11 +3,10 @@ DEPENDS =+ "klcc-cross" | |||
3 | 3 | ||
4 | # Default for klcc is to build static binaries. | 4 | # Default for klcc is to build static binaries. |
5 | # Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version. | 5 | # Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version. |
6 | CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}" | ||
7 | CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork" | ||
6 | 8 | ||
7 | export CC = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}" | 9 | CPP_forcevariable = "${CC} -E" |
8 | export CC_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork" | ||
9 | |||
10 | export CPP = "${CC} -E" | ||
11 | 10 | ||
12 | # klcc uses own optimizations by default. See klcc(1) man file. | 11 | # klcc uses own optimizations by default. See klcc(1) man file. |
13 | export CFLAGS="" | 12 | export CFLAGS="" |