Diff

Differences From Artifact [15ddc9112c]:

Also attachment "build.sh" to ticket [7bf1561836] added by anonymous on 2015-08-20 14:00:03.

To Artifact [756d463b89]:


   100    100   	cat configure.new > configure
   101    101   	rm -f configure.new
   102    102   	
   103    103   	(
   104    104   	    # Build
   105    105   	    echo "Running: ./configure $tryopt --disable-symbols --prefix=\"${INSTDIR}\" --exec-prefix=\"${INSTDIR}\" --libdir=\"${INSTDIR}/lib\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
   106    106   	    ./configure $tryopt --disable-symbols --prefix="${INSTDIR}" --exec-prefix="${INSTDIR}" --libdir="${INSTDIR}/lib" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
   107         -	    
   108         -	    echo "Running: ${MAKE:-make} TCLSH=${TCLSH_NATIVE}"
   109         -	    ${MAKE:-make} TCLSH=${TCLSH_NATIVE} || exit 1
   110         -	    
   111         -	    echo "Running: ${MAKE:-make} install TCLSH=${TCLSH_NATIVE}"
   112         -	    ${MAKE:-make} install TCLSH=${TCLSH_NATIVE}
          107  +
          108  +	    if [ "${KC_CROSSCOMPILE}" = '1' ]; then
          109  +                ## Cross-compiling, use TCLSH_NATIVE
          110  +		echo "Running: ${MAKE:-make} TCLSH=${TCLSH_NATIVE}"
          111  +		${MAKE:-make} TCLSH=${TCLSH_NATIVE} || exit 1
          112  +		
          113  +		echo "Running: ${MAKE:-make} install TCLSH=${TCLSH_NATIVE}"
          114  +		${MAKE:-make} install TCLSH=${TCLSH_NATIVE} || exit 1
          115  +	    else
          116  +		echo "Running: ${MAKE:-make}"
          117  +		${MAKE:-make} || exit 1
          118  +		
          119  +		echo "Running: ${MAKE:-make} install"
          120  +		${MAKE:-make} install || exit 1
          121  +            fi
   113    122   	    
   114    123   	) || continue
   115    124   	
   116    125   	break
   117    126       done
   118    127       
   119    128       mkdir "${OUTDIR}/lib" || exit 1