Check-in [2539bf269d]
Overview
Comment:Updated to create a fake "xmkmf" when cross-compiling
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2539bf269d42692d36a1d92e2a6fe29f350ad7d8
User & Date: rkeene on 2014-05-27 13:44:15
Other Links: manifest | tags
Context
2014-05-27
14:20
Added support for a manual knob (KC_CROSSCOMPILE) for determing whether fake xmkmf wrapper is used check-in: f49c630023 user: rkeene tags: trunk
13:44
Updated to create a fake "xmkmf" when cross-compiling check-in: 2539bf269d user: rkeene tags: trunk
2014-05-22
17:02
Upgraded to tcc4tcl 0.14 check-in: 8b2ac4d64e user: rkeene tags: trunk
Changes

Modified tk/build.sh from [cdaaafe15a] to [b4a36c92da].

   145    145   			echo "Running patch script: ${patchscript}"
   146    146                                   
   147    147   			(
   148    148   				. "${patchscript}"
   149    149   			)
   150    150   		fi
   151    151   	done
          152  +
          153  +	# Allow wrapper programs to supplant real programs
          154  +	if [ -d 'fake-bin' ]; then
          155  +		PATH="$(pwd)/fake-bin:${PATH}"
          156  +		export PATH
          157  +	fi
   152    158   
   153    159   	for dir in "${TCLCONFIGDIRTAIL}" unix win macosx win64 __fail__; do
   154    160   		if [ -z "${dir}" ]; then
   155    161   			continue
   156    162   		fi
   157    163   
   158    164   		if [ "${dir}" = "__fail__" ]; then

Added tk/patchscripts/xmkmf-donotuse.sh version [48cb1a1201].

            1  +#! /bin/bash
            2  +
            3  +# If we are not cross-compiling then don't worry about replacing "xmkmf" with a wrapper
            4  +if [ -z "${CC}" ]; then
            5  +	exit 0
            6  +fi
            7  +
            8  +case "$(basename "${CC}")" in
            9  +	*-*-*)
           10  +		;;
           11  +	*)
           12  +		exit 0
           13  +esac
           14  +
           15  +# Create an "xmkmf" wrapper which exits in failure so that autoconf will try
           16  +# to locate headers/libraries normally
           17  +mkdir fake-bin >/dev/null 2>/dev/null
           18  +
           19  +cat << \_EOF_ > fake-bin/xmkmf
           20  +#! /bin/bash
           21  +exit 1
           22  +_EOF_
           23  +
           24  +chmod +x fake-bin/xmkmf