mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-21 13:45:22 +00:00
Right now we are building minimal libc as an archive (lib.a) and do not need to link against -lc -lm in that case. Link against libc/libm only when using an external libc. Change-Id: I1af0eaf5c059bd5f0c8c16cda28114c6dc10b156 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
19 lines
536 B
Makefile
19 lines
536 B
Makefile
ifndef XTOOLS_TOOLCHAIN_PATH
|
|
$(error XTOOLS_TOOLCHAIN_PATH is not set)
|
|
endif
|
|
|
|
CROSS_COMPILE_TARGET_arm = arm-none-eabi
|
|
CROSS_COMPILE_arm_version = 4.9.2
|
|
CROSS_COMPILE_arm=${XTOOLS_TOOLCHAIN_PATH}/${CROSS_COMPILE_TARGET_arm}/bin/${CROSS_COMPILE_TARGET_arm}-
|
|
|
|
|
|
CROSS_COMPILE_TARGET_x86 = i586-pc-elf
|
|
CROSS_COMPILE_x86_version = 4.9.2
|
|
CROSS_COMPILE_x86=${XTOOLS_TOOLCHAIN_PATH}/${CROSS_COMPILE_TARGET_x86}/bin/${CROSS_COMPILE_TARGET_x86}-
|
|
|
|
CROSS_COMPILE= $(CROSS_COMPILE_$(ARCH))
|
|
|
|
TOOLCHAIN_LIBS = gcc
|
|
|
|
export CROSS_COMPILE TOOLCHAIN_LIBS
|