Skip to content

Commit

Permalink
Land #712, Fix linking in MinGW for OpenThreadToken on Windows XP x86
Browse files Browse the repository at this point in the history
  • Loading branch information
dledda-r7 committed Sep 19, 2024
2 parents c5bb65a + 68bbcf2 commit 3420144
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if(MSVC)
set_source_files_properties(${MOD_DEF_DIR}/extension.def PROPERTIES HEADER_FILE_ONLY TRUE)
endif()

set(LINK_LIBS netapi32 mpr)
set(LINK_LIBS advapi32 netapi32 mpr)
target_link_libraries(${PROJECT_NAME} ${LINK_LIBS} ${MET_RDI_ASM})
if(MSVC)
target_link_options(${PROJECT_NAME} PUBLIC "/ignore:4070")
Expand Down
2 changes: 1 addition & 1 deletion c/meterpreter/workspace/ext_server_priv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if(MSVC)
set_source_files_properties(${MOD_DEF_DIR}/extension.def PROPERTIES HEADER_FILE_ONLY TRUE)
endif()

set(LINK_LIBS psapi rpcrt4)
set(LINK_LIBS advapi32 psapi rpcrt4)
target_link_libraries(${PROJECT_NAME} ${LINK_LIBS} ${MET_RDI_ASM})
if(MSVC)
target_link_options(${PROJECT_NAME} PUBLIC "/ignore:4070")
Expand Down
1 change: 1 addition & 0 deletions c/meterpreter/workspace/ext_server_stdapi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if(MSVC)
endif()

set(LINK_LIBS
advapi32
jpeg
mpr
netapi32
Expand Down
2 changes: 1 addition & 1 deletion c/meterpreter/workspace/metsrv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if(MSVC)
set_source_files_properties(${MOD_DEF_DIR}/metsrv.def PROPERTIES HEADER_FILE_ONLY TRUE)
endif()

set(LINK_LIBS winhttp wininet crypt32)
set(LINK_LIBS advapi32 winhttp wininet crypt32)

if(MSVC)
target_link_options(${PROJECT_NAME} PUBLIC "/ignore:4070")
Expand Down

0 comments on commit 3420144

Please sign in to comment.