mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
For the recipes built with klcc-cross it is necessary to
pass --sysroot otherwise we default to the one encoded in gcc-cross which
actually is the 'first one' built.
The issue was revealed when building for armv4 after having built for armv5te:
the produced binaries did contain Illegal Instruction (bx lr).
Use ${TOOLCHAIN_OPTIONS} variable to specify --sysroot=${STAGING_DIR_TARGET}
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16 lines
483 B
Plaintext
16 lines
483 B
Plaintext
# klcc-cross depends on klibc
|
|
DEPENDS =+ "klcc-cross"
|
|
|
|
# Default for klcc is to build static binaries.
|
|
# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
|
|
|
|
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"
|
|
|
|
# klcc uses own optimizations by default. See klcc(1) man file.
|
|
export CFLAGS=""
|
|
export CPPFLAGS=""
|
|
export LDFLAGS=""
|