summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--entry/CMakeLists.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/entry/CMakeLists.txt b/entry/CMakeLists.txt
index 207e960..c65d496 100644
--- a/entry/CMakeLists.txt
+++ b/entry/CMakeLists.txt
@@ -13,18 +13,19 @@ add_executable(sapp sapp_init.c sapp_main.c sapp_global_val.c)
target_compile_options(sapp PUBLIC ${MEM_POOL_DEFINITIONS})
target_link_libraries(sapp nsl pthread dl m pcap)
target_link_libraries(sapp MESA_handle_logger MESA_prof_load)
+target_link_libraries(sapp sapp_assistant gdev_assistant)
set(SAPP_MODULES iknow timestamp_record md5 symbol_check MESA_sleep MESA_socket_wrap packet_io dealpkt project plugctrl)
-if(OPT_USE_DICTATOR OR OPT_USE_DICTATOR_DEBUG)
- set(SAPP_MODULES ${SAPP_MODULES} dictator2 )
-endif()
-
-if(ENABLE_STATIC_LINK)
- set(SAPP_MODULES ${SAPP_MODULES} sapp_assistant gdev_assistant )
-else()
- target_link_libraries(sapp sapp_assistant gdev_assistant)
-endif()
+#if(OPT_USE_DICTATOR OR OPT_USE_DICTATOR_DEBUG)
+# set(SAPP_MODULES ${SAPP_MODULES} dictator2 )
+#endif()
+#
+#if(ENABLE_STATIC_LINK)
+# set(SAPP_MODULES ${SAPP_MODULES} sapp_assistant gdev_assistant )
+#else()
+# target_link_libraries(sapp sapp_assistant gdev_assistant)
+#endif()
target_link_libraries(sapp -Wl,--whole-archive ${SAPP_MODULES} -Wl,--no-whole-archive ${SAPP_DEPEND_DYN_LIB})