Index: build/tcc-patches/0.9.26/tcc-0.9.26-tcl.diff ================================================================== --- build/tcc-patches/0.9.26/tcc-0.9.26-tcl.diff +++ build/tcc-patches/0.9.26/tcc-0.9.26-tcl.diff @@ -1,7 +1,8 @@ +diff -uNr tcc-0.9.26.orig/configure tcc-0.9.26-1tcl/configure --- tcc-0.9.26.orig/configure 2013-02-15 08:24:00.000000000 -0600 -+++ tcc-0.9.26-1tcl/configure 2014-05-01 19:50:10.103740647 -0500 ++++ tcc-0.9.26-1tcl/configure 2014-06-21 09:48:08.270011999 -0500 @@ -43,6 +43,7 @@ tcc_libpaths="" tcc_crtprefix="" tcc_elfinterp="" +tcc_tcl_path="" @@ -23,18 +24,22 @@ --elfinterp=... specify elf interpreter + --with-tcl=... specify path to Tcl EOF #echo "NOTE: The object files are build at the place where configure is launched" exit 1 -@@ -339,6 +343,25 @@ +@@ -339,6 +343,29 @@ esac fi +print_tcl_defs() { + ( + tclConfig="$1" + . "${tclConfig}" ++ if [ "${TCL_SUPPORTS_STUBS}" = '1' ]; then ++ TCL_LIBS="${TCL_LIBS} ${TCL_STUB_LIB_SPEC}" ++ fi ++ + LDFLAGS="$LDFLAGS $TCL_LIB_SPEC $TCL_LIBS" + CFLAGS="$CFLAGS $TCL_INCLUDE_SPEC -DHAVE_TCL_H=1" + set | egrep '^(CFLAGS|LDFLAGS)=' + ) +} @@ -49,12 +54,13 @@ +fi + cat <