Index: Makefile.in ================================================================== --- Makefile.in +++ Makefile.in @@ -27,11 +27,11 @@ INSTALL_HEADERS = tcl.h assert.h ctype.h errno.h float.h limits.h locale.h math.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h time.h wctype.h srcdir = @srcdir@ host_os = @host_os@ @SET_MAKE@ -all: $(TARGET) +all: $(TARGET) tcc/libtcc1.a tcc/config.h: if [ "$(srcdir)" = "." ]; then \ cd tcc && ./configure $(TCC_CONFIGURE_OPTS); \ else \ @@ -41,11 +41,11 @@ tcc/libtcc.a: tcc/config.h $(MAKE) -C tcc libtcc.a tcc/libtcc1.a: tcc/config.h - -$(MAKE) -C tcc tcc + -if [ '@build@' = '@host@' ]; then $(MAKE) -C tcc tcc; fi $(MAKE) -C tcc libtcc1.a tcc4tcl.o: $(srcdir)/tcc4tcl.c $(srcdir)/tcc/tcc.h $(srcdir)/tcc/libtcc.h tcc/config.h $(CC) $(CPPFLAGS) $(CFLAGS) -o tcc4tcl.o -c $(srcdir)/tcc4tcl.c Index: build/tcc-patches/0.9.26/tcc-0.9.26-tclio.diff ================================================================== --- build/tcc-patches/0.9.26/tcc-0.9.26-tclio.diff +++ build/tcc-patches/0.9.26/tcc-0.9.26-tclio.diff @@ -95,28 +95,27 @@ if (size <= 0) { tcc_error_noabort("could not read header"); goto the_end; diff -uNr tcc-0.9.26.orig/tcc.c tcc-0.9.26-1tclio/tcc.c --- tcc-0.9.26.orig/tcc.c 2013-02-15 08:24:00.000000000 -0600 -+++ tcc-0.9.26-1tclio/tcc.c 2014-06-21 12:37:45.060011999 -0500 -@@ -18,6 +18,10 @@ ++++ tcc-0.9.26-1tclio/tcc.c 2014-06-21 13:05:54.330011999 -0500 +@@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -+#ifdef USE_TCL_STUBS -+#define LIBTCC_USE_TCL_STUBS -+#undef USE_TCL_STUBS +#endif #ifdef ONE_SOURCE #include "libtcc.c" #else -@@ -248,7 +252,16 @@ +@@ -248,7 +249,18 @@ int64_t start_time = 0; const char *first_file = NULL; - s = tcc_new(); -+#ifdef LIBTCC_USE_TCL_STUBS ++#ifdef USE_TCL_STUBS ++#undef Tcl_CreateInterp ++#undef Tcl_InitStubs + Tcl_Interp *interp; + + interp = Tcl_CreateInterp(); + if (interp != NULL) { + Tcl_InitStubs(interp, TCL_VERSION, 0);