Userspace: Don't link with libc
This fixes bug where sometimes cmake does not find libc from sysroot LibC is linked per program in its own CMakeLists.txt
This commit is contained in:
parent
7ef751ba95
commit
414f0f6cd9
|
@ -56,7 +56,8 @@ add_subdirectory(aoc2023)
|
||||||
|
|
||||||
foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS})
|
foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS})
|
||||||
target_compile_options(${USERSPACE_PROJECT} PRIVATE -g)
|
target_compile_options(${USERSPACE_PROJECT} PRIVATE -g)
|
||||||
add_dependencies(${USERSPACE_PROJECT} libc-install ban-install)
|
|
||||||
add_dependencies(userspace ${USERSPACE_PROJECT})
|
add_dependencies(userspace ${USERSPACE_PROJECT})
|
||||||
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
|
add_dependencies(userspace-install ${USERSPACE_PROJECT}-install)
|
||||||
|
|
||||||
|
target_link_options(${USERSPACE_PROJECT} PRIVATE -nolibc)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Reference in New Issue