[BOOTMGFW]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 4 Sep 2015 15:33:12 +0000 (15:33 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 4 Sep 2015 15:33:12 +0000 (15:33 +0000)
- Fix build with RUNTIME_CHECKS (and hopefully STACK_PROTECTOR)

svn path=/trunk/; revision=68999

reactos/boot/environ/CMakeLists.txt

index 81409ed..e00f1f8 100644 (file)
@@ -61,6 +61,12 @@ set_entrypoint(bootmgfw EfiEntry)
 
 target_link_libraries(bootmgfw bootmgr_common cportlib cmlib rtl libcntpr)
 
+if(STACK_PROTECTOR)
+    target_link_libraries(bootmgfw gcc_ssp)
+elseif(RUNTIME_CHECKS)
+    target_link_libraries(bootmgfw runtmchk)
+endif()
+
 add_dependencies(bootmgfw asm bugcodes)
 
 add_cd_file(TARGET bootmgfw FILE ${_bootmgfw_output_file} DESTINATION loader NO_CAB FOR bootcd regtest)