fix a mingw64 build on Linux with --enable-tcc64-mingw
* define CONFIG_WIN64=yes when ARCH=x86-64 (not CONFIG_WIN32=yes)
* CONFIG_WIN64 now use a windows install part (not a Linux one)
This commit is contained in:
9
Makefile
9
Makefile
@ -271,10 +271,17 @@ else
|
||||
INSTALLBIN=$(INSTALL)
|
||||
endif
|
||||
|
||||
ifdef CONFIG_WIN32
|
||||
CONFIG_WIN=yes
|
||||
endif
|
||||
ifdef CONFIG_WIN64
|
||||
CONFIG_WIN=yes
|
||||
endif
|
||||
|
||||
install-strip: install
|
||||
strip $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG))
|
||||
|
||||
ifndef CONFIG_WIN32
|
||||
ifndef CONFIG_WIN
|
||||
install: $(PROGS) $(TCCLIBS) $(TCCDOCS)
|
||||
mkdir -p "$(bindir)"
|
||||
$(INSTALLBIN) -m755 $(PROGS) "$(bindir)"
|
||||
|
||||
Reference in New Issue
Block a user