Only include crtbegin.o and crtend.o when LIBGCC_DIR is defined.
Since LIBGCC_DIR is not defined when compiling for posix
architecture, crt{begin,end}.o cannot be referred to via
LIBGCC_DIR.
Also note that, when using llvm/clang, crt{begin,end}S.o are
automatically for native_posix which collide with symbols in
crt{begin,end}.o. So there is no point in making LIBGCC_DIR
available for native_posix under llvm/clang.
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
|
||
|---|---|---|
| .. | ||
| arcmwdt | ||
| armlink | ||
| ld | ||
| lld | ||
| xt-ld | ||
| linker_flags_template.cmake | ||
| linker_script_common.cmake | ||