blob: b7b72b728b0173beb6a8fbafae1487dffba25660 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001# 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.
6CC_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 ''}"
10
11CPP_forcevariable = "${CC} -E"
12
13# klcc uses own optimizations by default. See klcc(1) man file.
14export CFLAGS="${TUNE_CCARGS}"
15export CPPFLAGS="${TUNE_CCARGS}"
16export LDFLAGS="${TUNE_CCARGS}"