https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7416328523209c8d4442b…
commit 7416328523209c8d4442b6e13c8ebf97b03f1333
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Mon Apr 4 22:00:42 2022 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Apr 7 01:52:33 2022 +0200
[SDK:NTOS_VISTA] Fix GCC AMD64 build. Addendum to commit 6f559e9c5. (#4426)
Instead of adding the rtl_vista library to the target, manually add
the related source files to compilation. That's not the best, but
this should definitively fix the linking problem.
---
sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt
b/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt
index 9cb2838f2a0..934b4bc2054 100644
--- a/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt
+++ b/sdk/lib/drivers/ntoskrnl_vista/CMakeLists.txt
@@ -3,15 +3,18 @@ add_definitions(-D_WIN32_WINNT=0x600)
add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -D_NTSYSTEM_)
+include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/rtl)
+
list(APPEND SOURCE
etw.c
fsrtl.c
io.c
po.c
- ke.c)
+ ke.c
+ ${REACTOS_SOURCE_DIR}/sdk/lib/rtl/utf8.c)
add_library(ntoskrnl_vista ${SOURCE})
-target_link_libraries(ntoskrnl_vista PRIVATE rtl_vista)
+target_link_libraries(ntoskrnl_vista PRIVATE pseh) # rtl_vista)
add_dependencies(ntoskrnl_vista bugcodes xdk)
target_compile_definitions(ntoskrnl_vista PUBLIC NTKRNLVISTA)