blob: 202d132d941e9771d4d5b4e7798c081ad0a84a5a [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.
Patrick Williams213cb262021-08-07 19:21:33 -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:"