diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d086649f..805a0936d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -271,6 +271,9 @@ jobs: mingw-w64-${{matrix.env}}-hidapi mingw-w64-${{matrix.env}}-libftdi mingw-w64-${{matrix.env}}-libserialport + mingw-w64-${{matrix.env}}-readline + mingw-w64-${{matrix.env}}-ncurses + mingw-w64-${{matrix.env}}-termcap - name: Configure run: >- cmake diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f320bda4a..1e23f0673 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -311,6 +311,10 @@ add_executable(avrdude target_link_libraries(avrdude PUBLIC libavrdude) +if(MINGW) + target_link_options(avrdude PRIVATE -static) +endif() + # ===================================== # Install # =====================================