Further fixes to MXE compilation

Adds on the work of PR #130.
This commit is contained in:
Colton G. Rushton 2020-05-16 16:16:44 -03:00 committed by GitHub
parent 1197fe98d9
commit dfc0439a65
1 changed files with 7 additions and 1 deletions

View File

@ -423,7 +423,13 @@ else
endif
ifeq ($(WINDOWS_BUILD),1)
ifeq ($(CROSS),i686-w64-mingw32.static-) # fixes compilation in MXE on Linux and WSL
LD := $(CC)
else ifeq ($(CROSS),x86_64-w64-mingw32.static-)
LD := $(CC)
else
LD := $(CXX)
endif
else
LD := $(CC)
endif