Check-in [40706ce9b4]
Overview
Comment:Use TCLSH_NATIVE only when cross-compiling (as indicated by KC_CROSSCOMPILE)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:40706ce9b43d35b7264b861a96d34887224dc841
User & Date: ssoberni on 2015-10-23 20:09:18
Other Links: manifest | tags
Context
2015-10-23
20:43
Give it another try. Mac builds are cross-compilations check-in: df5accddbb user: ssoberni tags: trunk
20:09
Use TCLSH_NATIVE only when cross-compiling (as indicated by KC_CROSSCOMPILE) check-in: 40706ce9b4 user: ssoberni tags: trunk
2015-10-15
14:21
Added NSF build script check-in: 2ae580efcd user: rkeene tags: trunk
Changes

Modified nsf/build.sh from [15ddc9112c] to [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