Check-in [8a389f5b8d]
Overview
Comment:Experimenting with compiling libtcc1.a with gcc
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8a389f5b8db827d302ebed02e942d6041d4e8940
User & Date: rkeene on 2014-05-02 07:08:50
Other Links: manifest | tags
Context
2014-05-02
07:16
Updated to move GCC fixed headers into a fix directory check-in: d3f22e0fb0 user: rkeene tags: trunk, 0.1
07:08
Experimenting with compiling libtcc1.a with gcc check-in: 8a389f5b8d user: rkeene tags: trunk
06:41
Windows fixups check-in: b25d0baade user: rkeene tags: trunk
Changes

Modified build/tcc-patches/0.9.26/tcc-0.9.26-crosscompilefixes.diff from [403c9c4668] to [6575644e6a].

   137    137      --disable-rpath          disable use of -rpath with the above
   138    138      --with-libgcc            use /lib/libgcc_s.so.1 instead of libtcc.a
   139    139   +  --cpu=...                Specify CPU
   140    140   +  --os=...                 Specify OS
   141    141      --enable-mingw32         build windows version on linux with mingw32
   142    142      --enable-cygwin          build windows version on windows with cygwin
   143    143      --enable-cross           build cross compilers
          144  +diff -uNr tcc-0.9.26.orig/lib/Makefile tcc-0.9.26-1crosscompilefixes/lib/Makefile
          145  +--- tcc-0.9.26.orig/lib/Makefile	2013-02-15 08:24:00.000000000 -0600
          146  ++++ tcc-0.9.26-1crosscompilefixes/lib/Makefile	2014-05-02 01:55:55.407140003 -0500
          147  +@@ -47,24 +47,22 @@
          148  + ifeq "$(TARGET)" "i386-win32"
          149  +  OBJ = $(addprefix $(DIR)/,$(WIN32_O))
          150  +  TGT = -DTCC_TARGET_I386 -DTCC_TARGET_PE
          151  +- XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include
          152  +- XAR = $(DIR)/tiny_libmaker$(EXESUF)
          153  ++ XCC = $(CC) -I$(top_srcdir)/win32 -I$(top_srcdir)/include
          154  + else
          155  + ifeq "$(TARGET)" "x86_64-win32"
          156  +  OBJ = $(addprefix $(DIR)/,$(WIN64_O))
          157  +  TGT = -DTCC_TARGET_X86_64 -DTCC_TARGET_PE
          158  +- XCC = $(TCC) -B$(top_srcdir)/win32 -I$(top_srcdir)/include
          159  +- XAR = $(DIR)/tiny_libmaker$(EXESUF)
          160  ++ XCC = $(CC) -I$(top_srcdir)/win32 -I$(top_srcdir)/include
          161  + else
          162  + ifeq "$(TARGET)" "i386"
          163  +  OBJ = $(addprefix $(DIR)/,$(I386_O))
          164  +  TGT = -DTCC_TARGET_I386
          165  +- XCC ?= $(TCC) -B$(TOP)
          166  ++ XCC ?= $(CC) -I$(TOP)
          167  + else
          168  + ifeq "$(TARGET)" "x86_64"
          169  +  OBJ = $(addprefix $(DIR)/,$(X86_64_O))
          170  +  TGT = -DTCC_TARGET_X86_64
          171  +- XCC ?= $(TCC) -B$(TOP)
          172  ++ XCC ?= $(CC) -I$(TOP)
          173  + else
          174  +  $(error libtcc1.a not supported on target '$(TARGET)')
          175  + endif
          176  +diff -uNr tcc-0.9.26.orig/win32/lib/crt1.c tcc-0.9.26-1crosscompilefixes/win32/lib/crt1.c
          177  +--- tcc-0.9.26.orig/win32/lib/crt1.c	2013-02-15 08:24:00.000000000 -0600
          178  ++++ tcc-0.9.26-1crosscompilefixes/win32/lib/crt1.c	2014-05-02 01:56:11.277140003 -0500
          179  +@@ -19,7 +19,6 @@
          180  + 
          181  + int _start(void)
          182  + {
          183  +-    __TRY__
          184  +     int argc; char **argv; char **env; int ret;
          185  +     _startupinfo start_info = {0};
          186  + 
          187  +diff -uNr tcc-0.9.26.orig/win32/lib/wincrt1.c tcc-0.9.26-1crosscompilefixes/win32/lib/wincrt1.c
          188  +--- tcc-0.9.26.orig/win32/lib/wincrt1.c	2013-02-15 08:24:00.000000000 -0600
          189  ++++ tcc-0.9.26-1crosscompilefixes/win32/lib/wincrt1.c	2014-05-02 01:56:15.197140003 -0500
          190  +@@ -11,7 +11,6 @@
          191  + 
          192  + int _winstart(void)
          193  + {
          194  +-    __TRY__
          195  +     char *szCmd;
          196  +     STARTUPINFO startinfo;
          197  +     int fShow;