X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=ntoskrnl%2FCMakeLists.txt;h=d1ee38201d3e8d9fbe60225da0347d89bc9f1dac;hp=c2ba5f202c768963c0c22a04afc11cf1efa87764;hb=d8e92b5a0a791fda5bdd68ed4b4d5a3e8ac00536;hpb=81dea422f67f60d295af47c3de621015233e70d8 diff --git a/ntoskrnl/CMakeLists.txt b/ntoskrnl/CMakeLists.txt index c2ba5f202c7..d1ee38201d3 100644 --- a/ntoskrnl/CMakeLists.txt +++ b/ntoskrnl/CMakeLists.txt @@ -18,6 +18,7 @@ add_executable(ntoskrnl guid.c ntoskrnl.rc ${CMAKE_CURRENT_BINARY_DIR}/ntoskrnl.def) +set_property(TARGET ntoskrnl PROPERTY ENABLE_EXPORTS TRUE) if(ARCH STREQUAL "i386") set_entrypoint(ntoskrnl KiSystemStartup 4) @@ -28,6 +29,7 @@ set_subsystem(ntoskrnl native) if(MSVC) set_image_base(ntoskrnl 0x00400000) + add_target_link_flags(ntoskrnl "/SECTION:.rsrc,!DP") #Accessed from bugcheck code else() if(GDB) set_image_base(ntoskrnl 0x00800000) @@ -36,7 +38,7 @@ else() endif() endif() -target_link_libraries(ntoskrnl cportlib csq ${PSEH_LIB} cmlib rtl ${ROSSYM_LIB} libcntpr wdmguid ioevent) +target_link_libraries(ntoskrnl cportlib csq ${PSEH_LIB} cmlib ntlsalib rtl ${ROSSYM_LIB} libcntpr wdmguid ioevent) if(STACK_PROTECTOR) target_link_libraries(ntoskrnl gcc_ssp) @@ -56,3 +58,4 @@ endif() add_asm_files(ntdllsys_asm ntdll.S) add_library(ntdllsys ${ntdllsys_asm}) set_target_properties(ntdllsys PROPERTIES LINKER_LANGUAGE "C") +add_dependencies(ntdllsys asm) \ No newline at end of file