diff options
| author | dump2file <[email protected]> | 2019-01-22 17:01:48 +0600 |
|---|---|---|
| committer | dump2file <[email protected]> | 2019-01-22 17:01:48 +0600 |
| commit | 5d7fb5252850eeba5a383914ed0b1bd678388d7e (patch) | |
| tree | 630fdb205cf2738cd0bd2e5826817c307bfbbd7c | |
| parent | 6189e1d17e461453c9c2db0a996529e0a560e7cd (diff) | |
1、调整静态链接inner_plug插件的编译逻辑
| -rw-r--r-- | entry/CMakeLists.txt | 19 |
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}) |
