Diff

Differences From Artifact [7b29c2b2f9]:

To Artifact [d5535b0fe9]:


    62     62   	if [ ! -d '../buildsrc' ]; then
    63     63   		gzip -dc "../${SRC}" | tar -xf -
    64     64   	else    
    65     65   		cp -rp ../buildsrc/* './'
    66     66   	fi
    67     67   
    68     68   	cd "${BUILDDIR}" || exit 1
           69  +
           70  +	# Work around bug where Itcl v3.4 picks up wrong platform when cross-compiling
           71  +	case "${TCLCONFIGDIR}" in
           72  +		*/win)
           73  +			TEA_PLATFORM="windows"
           74  +			export TEA_PLATFORM
           75  +			;;
           76  +		*)
           77  +			TEA_PLATFORM="unix"
           78  +			export TEA_PLATFORM
           79  +			;;
           80  +	esac
           81  +	sed 's@TEA_PLATFORM=@test -z "$TEA_PLATFORM" \&\& &@' configure > configure.new && cat configure.new > configure
           82  +	rm -f configure.new
           83  +
           84  +	# Build
    69     85   	./configure --enable-shared --disable-symbols --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
    70     86   
    71     87   	${MAKE:-make} || exit 1
    72     88   
    73     89   	${MAKE:-make} install
    74     90   
    75     91   	mkdir "${OUTDIR}/lib" || exit 1