Artifact Content

Artifact 05272e8f15ea3eb038c6c51b8b834bc01d873422:


#! /bin/sh

# Set C compiler to diet libc
CC='diet gcc'
export CC

rm -rf tcl/patchscripts
mkdir tcl/patchscripts || exit 1

cat << \__EOF__ > tcl/patchscripts/dietlibc.sh
sed 's@^# *include *<string.h>$@&@;T s;p;s@string.h@strings.h@;:s' generic/tclInt.h > generic/tclInt.h.new && cat generic/tclInt.h.new > generic/tclInt.h
rm -f generic/tclInt.h.new
__EOF__

./build/make-minkit "$@" --disable-load --disable-threads

rm -rf tcl/patchscripts

exit 0