blob: bba10f1b61504a848997dcd0ae9a3649ccc85be2 [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
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011# klcc uses own optimizations by default. See klcc(1) man file.
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012export CFLAGS="${TUNE_CCARGS}"
13export CPPFLAGS="${TUNE_CCARGS}"
14export LDFLAGS="${TUNE_CCARGS}"
Brad Bishop19323692019-04-05 15:28:33 -040015
16OVERRIDES =. "libc-klibc:"