Diff

Differences From Artifact [f495d0968a]:

To Artifact [73b3561dba]:


    29     29   
    30     30   (
    31     31   	cp -r 'buildsrc' 'build'
    32     32   	cd "${BUILDDIR}" || exit 1
    33     33   
    34     34   	# Cleanup, just incase the incoming directory was not pre-cleaned
    35     35   	${MAKE:-make} distclean >/dev/null 2>/dev/null
           36  +
           37  +	# Figure out if zlib compiled
           38  +	ZLIBDIR=$(cd "${OTHERPKGSDIR}/zlib/inst"; pwd)
           39  +	export ZLIBDIR
           40  +	if [ ! -f "${ZLIBDIR}/lib/libz.a" ]; then
           41  +		unset ZLIBDIR
           42  +	fi
    36     43   
    37     44   	# Compile Kitsh
    38         -	./configure --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
           45  +	if [ -z "${ZLIBDIR}" ]; then
           46  +		echo "./configure --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
           47  +
           48  +		./configure --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
           49  +	else
           50  +		echo "./configure --with-tcl=\"${TCLCONFIGDIR}\" --with-zlib=\"${ZLIBDIR}\" ${CONFIGUREEXTRA}"
           51  +
           52  +		./configure --with-tcl="${TCLCONFIGDIR}" --with-zlib="${ZLIBDIR}" ${CONFIGUREEXTRA}
           53  +	fi
    39     54   	${MAKE:-make} || exit 1
    40     55   
    41     56   	# Strip the kit of all symbols, if possible
    42     57   	strip kit >/dev/null 2>/dev/null
    43     58   
    44     59   	# Create VFS directory
    45     60   	mkdir "starpack.vfs"