Mercurial > hg > Members > anatofuz > CbC_xv6
changeset 56:a5ca5cc4661c
fix use objects at linker
author | anatofuz |
---|---|
date | Thu, 06 Jun 2019 19:46:58 +0900 |
parents | 4f5d1aa8b594 |
children | 450ee0f18709 |
files | src/CMakeLists.txt |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/CMakeLists.txt Thu Jun 06 19:25:42 2019 +0900 +++ b/src/CMakeLists.txt Thu Jun 06 19:46:58 2019 +0900 @@ -39,7 +39,8 @@ add_definitions("-B/mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi- -DCBCXV6=1 -fno-pic -static -fno-builtin -fno-strict-aliasing -Wall -I. -g -O0") find_compiler_rt_library("LIBRARY_FILE") - set(CMAKE_C_LINK_EXECUTABLE "/mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi-ld -L. -T kernel-cmake.ld ${LIBRARY_FILE} -o kernel.elf -b binary -nostdlib ") +#cmake -DCMAKE_LINKER=/path/to/linker -DCMAKE_CXX_LINK_EXECUTABLE="<CMAKE_LINKER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>" + set(CMAKE_C_LINK_EXECUTABLE "/mnt/dalmore-home/one/src/armgcc/cross/bin/arm-none-eabi-ld -L. -T kernel-cmake.ld -o kernel.elf -b binary -nostdlib <OBJECTS> ${LIBRARY_FILE}") endif (APPLE)