mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-15 23:05:34 +01:00
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>
This commit is contained in:
parent
028eeb8ca6
commit
7fb5af6557
|
|
@ -3,11 +3,10 @@ DEPENDS =+ "klcc-cross"
|
|||
|
||||
# Default for klcc is to build static binaries.
|
||||
# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
|
||||
CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
|
||||
CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
|
||||
|
||||
export CC = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
|
||||
export CC_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
|
||||
|
||||
export CPP = "${CC} -E"
|
||||
CPP_forcevariable = "${CC} -E"
|
||||
|
||||
# klcc uses own optimizations by default. See klcc(1) man file.
|
||||
export CFLAGS=""
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user