Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [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. |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 ''}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 11 | # klcc uses own optimizations by default. See klcc(1) man file. |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | export CFLAGS="${TUNE_CCARGS}" |
| 13 | export CPPFLAGS="${TUNE_CCARGS}" |
| 14 | export LDFLAGS="${TUNE_CCARGS}" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 15 | |
| 16 | OVERRIDES =. "libc-klibc:" |