[CI][MinGW] Fix build on ubuntu-latest

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
This commit is contained in:
Vitalii Koshura 2023-02-07 15:10:42 +01:00
parent 9e74209828
commit c14adf6c37
No known key found for this signature in database
GPG Key ID: CE0DB1726070A5A3
3 changed files with 8 additions and 8 deletions

View File

@ -19,7 +19,7 @@ env:
jobs:
build:
name: ${{ matrix.type }}-build
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
type: [libs-mingw, apps-mingw, apps-mingw-vcpkg, libs-mingw-cmake]

View File

@ -163,7 +163,7 @@ ZIP_BOINC_RENAMES = \
-Dget_crc_table=get_crc_table_boinc \
-Dlongest_match=longest_match_boinc \
-Dinflate_codes=inflate_codes_boinc
ZIP_FLAGS = $(ZIP_VCPROJ_FLAGS) $(ZIP_BOINC_RENAMES) -DUSE_MINGW_GLOBBING -DUSE_STRM_INPUT $(INCS) -O2 $(NOCYGWIN)
ZIP_FLAGS = $(ZIP_VCPROJ_FLAGS) $(ZIP_BOINC_RENAMES) -DUSE_MINGW_GLOBBING -DUSE_STRM_INPUT $(INCS) -O2 $(NOCYGWIN) -fcommon
# LDFLAGS = -lwinmm

View File

@ -10,8 +10,8 @@ AM_CFLAGS += -I$(top_srcdir) -I$(top_srcdir)/zip/zip -I$(top_srcdir)/zip/unzip -
AM_CXXFLAGS += -I$(top_srcdir) -I$(top_srcdir)/zip/zip -I$(top_srcdir)/zip/unzip -I$(top_srcdir)/lib -DUNIX -DDLL -DUSE_ZIPMAIN -DNO_OFF_T -DNO_CRYPT -DNO_LCHOWN -DNO_LCHMOD -DIZ_PWLEN=80 -Dinflate=inflate_boinc -Ddeflate=deflate_boinc -Dget_crc_table=get_crc_table_boinc -Dlongest_match=longest_match_boinc -Dinflate_codes=inflate_codes_boinc -Dcrc32=crc32_boinc
if OS_WIN32
AM_CFLAGS += -DFORCE_WIN32_OVER_UNIX
AM_CXXFLAGS += -DFORCE_WIN32_OVER_UNIX
AM_CFLAGS += -DFORCE_WIN32_OVER_UNIX -fcommon
AM_CXXFLAGS += -DFORCE_WIN32_OVER_UNIX -fcommon
endif
if INSTALL_HEADERS