lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # klcc-cross depends on klibc |
| 2 | DEPENDS =+ "klcc-cross" |
| 3 | |
| 4 | # Default for klcc is to build static binaries. |
| 5 | # Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version. |
| 6 | CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}" |
| 7 | CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork" |
| 8 | CC_append_armv7ve = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}" |
| 9 | CC_append_armv7a = " ${@' -mfloat-abi=${TUNE_CCARGS_MFLOAT}' if (d.getVar('TUNE_CCARGS_MFLOAT') != '') else ''}" |
| 10 | |
| 11 | # klcc uses own optimizations by default. See klcc(1) man file. |
| 12 | export CFLAGS="${TUNE_CCARGS}" |
| 13 | export CPPFLAGS="${TUNE_CCARGS}" |
| 14 | export LDFLAGS="${TUNE_CCARGS}" |
| 15 | |
| 16 | OVERRIDES =. "libc-klibc:" |