mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 00:04:10 +00: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.
|
# Default for klcc is to build static binaries.
|
||||||
# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
|
# 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}"
|
CPP_forcevariable = "${CC} -E"
|
||||||
export CC_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
|
|
||||||
|
|
||||||
export CPP = "${CC} -E"
|
|
||||||
|
|
||||||
# klcc uses own optimizations by default. See klcc(1) man file.
|
# klcc uses own optimizations by default. See klcc(1) man file.
|
||||||
export CFLAGS=""
|
export CFLAGS=""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user