Skip to content

Commit

Permalink
Use -static linking option for MinGW
Browse files Browse the repository at this point in the history
This will prevent the dependency to libwinpthread-1.dll.
  • Loading branch information
mcuee authored Nov 20, 2023
1 parent 390e3ba commit c4b5097
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ add_executable(avrdude

target_link_libraries(avrdude PUBLIC libavrdude)

if(MINGW)
target_link_options(avrdude PRIVATE -static)
endif()

# =====================================
# Install
# =====================================
Expand Down

0 comments on commit c4b5097

Please sign in to comment.