summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexey Gavrilov <alexey.gavrilov@mail.com>2026-04-02 18:52:26 +0700
committerAlexey Gavrilov <alexey.gavrilov@mail.com>2026-04-02 19:04:08 +0700
commitb0bb74c25d3a2caab032e5facfd9608724de3e05 (patch)
treec6a8fc4175176e8bb6372f4b072979126937aec0 /CMakeLists.txt
parent6cdf09f651586135b7cf7a8a05ba4a96cb6b3b97 (diff)
Correct CRTXBUNDLE static targets into separate objectscmake
This correct refers to a wrong order of linking CRT objects. When targets are separates into 4: CRTI, CRTBEGIN, CRTEND, CRTN the order became a little bit correct. TODO - Image with grub bootloader creation - Build under window platform (optional) Signed-off-by: Alexey Gavrilov <alexey.gavrilov@mail.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7cd67be..6173245 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -107,11 +107,13 @@ target_sources(Objective PRIVATE
)
target_link_libraries(Objective PRIVATE
- CRTI
+ $<TARGET_OBJECTS:CRTI>
+ $<TARGET_OBJECTS:CRTBEGIN>
Architecture
Kernel
Drivers
- CRTN
+ $<TARGET_OBJECTS:CRTEND>
+ $<TARGET_OBJECTS:CRTN>
)
# Set cxx linker options