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:
commit
3420144781
@ -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")
|
||||
|
@ -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")
|
||||
|
@ -43,6 +43,7 @@ if(MSVC)
|
||||
endif()
|
||||
|
||||
set(LINK_LIBS
|
||||
advapi32
|
||||
jpeg
|
||||
mpr
|
||||
netapi32
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user