blob: b7b72b728b0173beb6a8fbafae1487dffba25660 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001# klcc-cross depends on klibc
2DEPENDS =+ "klcc-cross"
3
4# Default for klcc is to build static binaries.
5# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
7CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
8CC_append_armv7ve = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
9CC_append_armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011CPP_forcevariable = "${CC} -E"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012
13# klcc uses own optimizations by default. See klcc(1) man file.
Brad Bishopd7bf8c12018-02-25 22:55:05 -050014export CFLAGS="${TUNE_CCARGS}"
15export CPPFLAGS="${TUNE_CCARGS}"
16export LDFLAGS="${TUNE_CCARGS}"