mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 12:42:26 +00:00
Cross-compiling using mingw should only pick one gcc executable
If multiple mingw toolchains are installed, the Makefile set CC to all present gcc executables. Pick only the first one instead of passing the others as arguments. "CC: /usr/bin/i686-w64-mingw32-gcc /usr/bin/i686-pc-mingw32-gcc"
This commit is contained in:
parent
1f6703821f
commit
d8afce6805
1 changed files with 4 additions and 4 deletions
8
Makefile
8
Makefile
|
@ -514,13 +514,13 @@ ifdef MINGW
|
|||
endif
|
||||
|
||||
ifndef CC
|
||||
CC=$(strip $(foreach MINGW_PREFIX, $(MINGW_PREFIXES), \
|
||||
$(call bin_path, $(MINGW_PREFIX)-gcc)))
|
||||
CC=$(firstword $(strip $(foreach MINGW_PREFIX, $(MINGW_PREFIXES), \
|
||||
$(call bin_path, $(MINGW_PREFIX)-gcc))))
|
||||
endif
|
||||
|
||||
ifndef WINDRES
|
||||
WINDRES=$(strip $(foreach MINGW_PREFIX, $(MINGW_PREFIXES), \
|
||||
$(call bin_path, $(MINGW_PREFIX)-windres)))
|
||||
WINDRES=$(firstword $(strip $(foreach MINGW_PREFIX, $(MINGW_PREFIXES), \
|
||||
$(call bin_path, $(MINGW_PREFIX)-windres))))
|
||||
endif
|
||||
else
|
||||
# Some MinGW installations define CC to cc, but don't actually provide cc,
|
||||
|
|
Loading…
Reference in a new issue