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 8722b09bb4
commit f4a3757145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -423,7 +423,13 @@ else
endif
ifeq ($(WINDOWS_BUILD),1)
LD := $(CXX)
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