1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-02 11:36:22 +01:00

Land #712, Fix linking in MinGW for OpenThreadToken on Windows XP x86

This commit is contained in:
dledda-r7 2024-09-19 05:20:23 -04:00
commit 3420144781
No known key found for this signature in database
GPG Key ID: 4D4EC504A1F02FFF
4 changed files with 4 additions and 3 deletions

View File

@ -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")

View File

@ -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")

View File

@ -43,6 +43,7 @@ if(MSVC)
endif()
set(LINK_LIBS
advapi32
jpeg
mpr
netapi32

View File

@ -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")