Index: tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh ================================================================== --- tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh +++ tcc/patchscripts/tcltcc-0.4-addtclfuncs.sh @@ -8,11 +8,11 @@ NM='nm' fi fi # "${NM}" "${LIBTCL}" | sed 's@:.*$@@' | sed 's@.* @@' | grep '^Tcl_' | sort -u | while read -r sym; do - "${CC:-gcc}" ${CPPFLAGS} -E include/tcl.h | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@(.*@@;s@.* *\** *@@' | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do + ${CC:-gcc} ${CPPFLAGS} -E include/tcl.h | grep '^ *extern.*Tcl_'| sed 's@^ *extern *@@;s@(.*@@;s@.* *\** *@@' | sort -u | grep '^Tcl_' | grep -v ';$' | while read -r sym; do echo " TCCSYM($sym)" done } add="$(find_syms)"