https://git.reactos.org/?p=reactos.git;a=commitdiff;h=157a509a0fb7023134557…
commit 157a509a0fb70231345577b59690a3af19e4fb3d
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Sat Apr 6 16:50:56 2019 +0200
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Sat Apr 6 17:43:38 2019 +0200
[CMAKE] Also set blank DEFINE_SYMBOL property for freeldr helpers
---
boot/freeldr/freeldr/CMakeLists.txt | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/boot/freeldr/freeldr/CMakeLists.txt b/boot/freeldr/freeldr/CMakeLists.txt
index 1030710479..4ffa44a7ca 100644
--- a/boot/freeldr/freeldr/CMakeLists.txt
+++ b/boot/freeldr/freeldr/CMakeLists.txt
@@ -2,6 +2,7 @@
if(SEPARATE_DBG)
# FIXME:
http://sourceware.org/bugzilla/show_bug.cgi?id=11822
set(CMAKE_LDR_PE_HELPER_LINK_EXECUTABLE "<CMAKE_C_COMPILER>
<CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET>
<LINK_LIBRARIES>")
+ set(CMAKE_LDR_PE_HELPER_STANDARD_LIBRARIES_INIT "")
set(CMAKE_LDR_PE_HELPER_STANDARD_LIBRARIES "-lgcc" CACHE STRING
"Standard C Libraries")
endif()
@@ -236,8 +237,10 @@ endif()
add_executable(freeldr_pe ${FREELDR_BASE_SOURCE})
add_executable(freeldr_pe_dbg EXCLUDE_FROM_ALL ${FREELDR_BASE_SOURCE})
-set_property(TARGET freeldr_pe PROPERTY ENABLE_EXPORTS TRUE)
-set_property(TARGET freeldr_pe_dbg PROPERTY ENABLE_EXPORTS TRUE)
+set_target_properties(freeldr_pe freeldr_pe_dbg
+ PROPERTIES
+ ENABLE_EXPORTS TRUE
+ DEFINE_SYMBOL "")
if(NOT MSVC AND SEPARATE_DBG)
set_target_properties(freeldr_pe PROPERTIES LINKER_LANGUAGE LDR_PE_HELPER)