History

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)

seyko committed 10 years ago

Commit 18cbe621 parent 824b1b53 files · +16 −4Browse files

Unified · Split

3 files
  1. Makefile +8 −1
  2. configure +7 −2
  3. lib/Makefile +1 −1
Makefile+8−1
@@ -271,10 +271,17 @@ else · 270 unmodified lines
271INSTALLBIN=$(INSTALL)271INSTALLBIN=$(INSTALL)
272endif272endif
273 273
274ifdef CONFIG_WIN32
275CONFIG_WIN=yes
276endif
277ifdef CONFIG_WIN64
278CONFIG_WIN=yes
279endif
280
274install-strip: install281install-strip: install
275 strip $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG))282 strip $(foreach PROG,$(PROGS),"$(bindir)"/$(PROG))
276 283
277ifndef CONFIG_WIN32284ifndef CONFIG_WIN
278install: $(PROGS) $(TCCLIBS) $(TCCDOCS)285install: $(PROGS) $(TCCLIBS) $(TCCDOCS)
279 mkdir -p "$(bindir)"286 mkdir -p "$(bindir)"
280 $(INSTALLBIN) -m755 $(PROGS) "$(bindir)"287 $(INSTALLBIN) -m755 $(PROGS) "$(bindir)"
configure+7−2
@@ -520,8 +520,13 @@ if test "$noldl" = "yes" ; then · 519 unmodified lines
520 echo "CONFIG_NOLDL=yes" >> config.mak520 echo "CONFIG_NOLDL=yes" >> config.mak
521fi521fi
522if test "$mingw32" = "yes" ; then522if test "$mingw32" = "yes" ; then
523 echo "CONFIG_WIN32=yes" >> config.mak523 if test "$cpu" = "x86-64"; then
524 echo "#define CONFIG_WIN32 1" >> $TMPH524 echo "CONFIG_WIN64=yes" >> config.mak
525 echo "#define CONFIG_WIN64 1" >> $TMPH
526 else
527 echo "CONFIG_WIN32=yes" >> config.mak
528 echo "#define CONFIG_WIN32 1" >> $TMPH
529 fi
525fi530fi
526if test "$cygwin" = "yes" ; then531if test "$cygwin" = "yes" ; then
527 echo "#ifndef _WIN32" >> $TMPH532 echo "#ifndef _WIN32" >> $TMPH
lib/Makefile+1−1
@@ -68,7 +68,7 @@ else · 67 unmodified lines
68ifeq "$(TARGET)" "x86_64-win"68ifeq "$(TARGET)" "x86_64-win"
69 OBJ = $(addprefix $(DIR)/,$(WIN64_O))69 OBJ = $(addprefix $(DIR)/,$(WIN64_O))
70 TGT = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE70 TGT = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE
71 XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include71 XCC ?= $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include
72 XAR ?= $(DIR)/tiny_libmaker$(EXESUF)72 XAR ?= $(DIR)/tiny_libmaker$(EXESUF)
73 PICFLAGS =73 PICFLAGS =
74else74else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t