Diff

Differences From Artifact [5e7c9aafc7]:

To Artifact [0884ea1589]:


    86     86   					rm -f tclConfig.sh
    87     87   
    88     88   					exit 1
    89     89   				) || continue
    90     90   
    91     91   				## Kludge to make Tcl install when cross-compiling.
    92     92   				sed 's@^${TCL_EXE}@blah@' Makefile > Makefile.new
    93         -				cat Makefile.new > Makefile
           93  +				sed 's@^$(TCLSH)@blah@' Makefile.new > Makefile
    94     94   				rm -f Makefile.new
    95     95   
    96     96   				echo " Executing: ${MAKE:-make} install"
    97         -				${MAKE:-make} install TCL_EXE="../../../../../../../../../../../../../../../../../$(which "${TCLSH_NATIVE:-tclsh}")" || break
           97  +				${MAKE:-make} install TCL_EXE="../../../../../../../../../../../../../../../../../$(which "${TCLSH_NATIVE:-tclsh}")" TCLSH="../../../../../../../../../../../../../../../../../$(which "${TCLSH_NATIVE:-tclsh}")" || break
    98     98   
    99     99   				LD_LIBRARY_PATH=".:${LD_LIBRARY_PATH}"
   100    100   				LD_RUN_PATH=".:${LD_RUN_PATH}"
   101    101   				export LD_LIBRARY_PATH LD_RUN_PATH
   102    102   
   103    103   				file tclsh tclsh*.exe 2>/dev/null | grep -iv 'No such file' > "${PROJROOTDIR}/platform.magic.file"
   104    104   				if [ -f tclsh*.exe ]; then
................................................................................
   170    170   	if [ -z "${PLATFORM}" ]; then
   171    171   		PLATFORM="$(./platform)"
   172    172   	fi
   173    173   else
   174    174   	PLATFORM="${FORCE_PLATFORM}"
   175    175   fi
   176    176   export PLATFORM
          177  +
          178  +# Set platform specific configuration
          179  +case "${PLATFORM}" in
          180  +	solaris2*)
          181  +		LDFLAGS="${LDFLAGS} -static-libgcc"
          182  +		export LDFLAGS
          183  +		;;
          184  +esac
   177    185   
   178    186   # Build all appropriate directories
   179    187   faileddirs=""
   180    188   if [ -z "${DIRS}" ]; then
   181    189   	DIRS="`echo */`"
   182    190   	PKGHASHCODE=''
   183    191   else