Skip to content

Commit

Permalink
mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyg committed Jan 2, 2024
1 parent 5e527ad commit 19dcebd
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions mcwin32/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -700,29 +700,28 @@ endif

ifeq (mingw,$(findstring mingw,"@TOOLCHAIN@"))
GCCBIN= $(dir $(shell which gcc 2>/dev/null))
# mingw32 default to dw2 exception handling while mingw64 default to seh.
ifneq ("$(wildcard $(GCCBIN)/libstdc++-6.dll)","")
# mingw32 default to dw2 exception handling while mingw64 default to seh.
ifeq (mingw64,$(findstring mingw64,"@TOOLCHAIN@"))
GCCEXPDLL=libgcc_s_seh-1.dll
else
GCCEXPDLL=libgcc_s_dw2-1.dll
endif
GCCSTDDLL=libstdc++-6.dll
GCCTHRDLL=libwinpthread-1.dll
else
ifeq (mingw64,$(findstring mingw64,"@TOOLCHAIN@"))
GCCEXPDLL=msys-gcc_s_seh-1.dll
else
GCCEXPDLL=msys-gcc_s_dw2-1.dll
endif
GCCSTDDLL=msys-libstdc++-6.dll
GCCTHRDLL=msys-winpthread-1.dll
endif

IMPORT+=\
$(D_BIN)/$(GCCEXPDLL) \
$(D_BIN)/$(GCCSTDDLL) \
$(D_BIN)/$(GCCTHRDLL)
else
# XXX
GCCEXPDLL=msys-gcc_s-seh-1.dll
GCCSTDDLL=msys-stdc++-6.dll
GCCTHRDLL=msys-pthread-1.dll
IMPORT+=\
$(D_BIN)/$(GCCEXPDLL) \
$(D_BIN)/$(GCCSTDDLL)
endif
endif

AUTOUPDATER= no
Expand Down

0 comments on commit 19dcebd

Please sign in to comment.