diff options
| author | Felix Morgner <felix.morgner@ost.ch> | 2025-07-24 15:05:17 +0000 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@ost.ch> | 2025-07-24 15:05:17 +0000 |
| commit | 2b8fafa2bddc48ddec047de517115c8e65ee61e8 (patch) | |
| tree | 7ccec50eedba9c4e7c4bbabdf9f7ffd38c89d282 /CMakeLists.txt | |
| parent | ef907825e861b63726952bb34b425a98f34ed412 (diff) | |
| download | teachos-2b8fafa2bddc48ddec047de517115c8e65ee61e8.tar.xz teachos-2b8fafa2bddc48ddec047de517115c8e65ee61e8.zip | |
build: move linker script dependency to kernel
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a6dabc..aa1f6a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,10 +47,17 @@ target_link_libraries("kernel" PRIVATE ) target_link_options("kernel" PRIVATE + "-T${KERNEL_LINKER_SCRIPT}" "-no-pie" "-nostdlib" ) +set_property(TARGET "kernel" + APPEND + PROPERTY LINK_DEPENDS + "${KERNEL_LINKER_SCRIPT}" +) + target_disassemble("kernel") target_extract_debug_symbols("kernel") target_strip("kernel") |
