host-gcc: TOOLCHAIN_LIBS += libgcc (copied from compiler/gcc/)
Add missing -lgcc when compiling with ZEPHYR_TOOLCHAIN_VARIANT=host merely copying some existing code from 'compiler/{clang,gcc}/target.cmake'. This fixes compilation for the following boards with an x86 microprocessor: galileo, minnowboard, qemu_x86, qemu_x86_nommu, up_squared, up_squared_sbl Compilation of the following boards with an X86_IAMCU microcontroller still fail with a "cannot find -lgcc" error: arduino_101, qemu_x86_iamcu, quark_d2000_crb, quark_se_c1000_devboard, tinytile This is _not_ a regression because these boards _already_ failed with "undefined reference to __udivdi3" and other libgcc symbols. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
parent
5ac9cfd131
commit
aa4ed2ae8c
3 changed files with 16 additions and 0 deletions
|
@ -33,6 +33,7 @@ foreach(isystem_include_dir ${NOSTDINC})
|
|||
list(APPEND isystem_include_flags -isystem ${isystem_include_dir})
|
||||
endforeach()
|
||||
|
||||
# This libgcc code is partially duplicated in compiler/*/target.cmake
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_C_COMPILER} ${TOOLCHAIN_C_FLAGS} --print-libgcc-file-name
|
||||
OUTPUT_VARIABLE LIBGCC_FILE_NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue