Skip to content

Commit

Permalink
include standard libc to the patcher (gcc)
Browse files Browse the repository at this point in the history
  • Loading branch information
pionere committed Nov 26, 2023
1 parent 73453d9 commit 36dac95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,9 @@ endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND NOT GPERF AND NOT HAIKU AND NOT VITA)
target_link_libraries(${BIN_TARGET} PUBLIC "$<$<NOT:$<CONFIG:Debug>>:-static-libgcc;-static-libstdc++>")
if(USE_PATCH)
target_link_libraries(${DEVIL_PATCHER} PUBLIC "$<$<NOT:$<CONFIG:Debug>>:-static-libgcc;-static-libstdc++>")
endif()
endif()

if(WIN32)
Expand Down

0 comments on commit 36dac95

Please sign in to comment.