Skip to content

Commit 10f1760

Browse files
committed
newlib: workaround cflags issue in crosstool for newlib-nano
When building newlib-nano because its treated as a companion_libs the order it gets built ends up not having CT_ARCH_TARGET_CFLAGS set correctly (as it gets cleared by a previous build stage). This causes issues on ARM, so to workaround this we mimic the setting of CT_ARCH_TARGET_CFLAGS in CT_LIBC_NEWLIB_NANO_TARGET_CFLAGS to "-mthumb-interwork" (That mimics how CT_ARCH_TARGET_CFLAGS is set because we enable CT_ARCH_ARM_INTERWORKING=y). Signed-off-by: Kumar Gala <[email protected]>
1 parent 1bb31ea commit 10f1760

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configs/arm.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ CT_NEWLIB_NANO_DEVEL_URL="https://github.com/zephyrproject-rtos/newlib-cygwin.gi
4646
CT_NEWLIB_NANO_DEVEL_REVISION="4f5997d3c0f9011135e9627dad700c9d64be4a4b"
4747
CT_NEWLIB_NANO_GCC_LIBSTDCXX=y
4848
CT_NEWLIB_NANO_INSTALL_IN_TARGET=y
49+
CT_LIBC_NEWLIB_NANO_TARGET_CFLAGS="-mthumb-interwork"
4950
# CT_LIBC_NEWLIB_NANO_IO_C99FMT is not set
5051
# CT_LIBC_NEWLIB_NANO_IO_LL is not set
5152
CT_LIBC_NEWLIB_NANO_IO_FLOAT=y

0 commit comments

Comments
 (0)