Index: kitsh/build.sh ================================================================== --- kitsh/build.sh +++ kitsh/build.sh @@ -25,12 +25,13 @@ ( cp -r 'buildsrc' 'build' cd "${BUILDDIR}" || exit 1 # Compile all objects... - ## XXX - ${CC:-cc} -I${TCLCONFIGDIR} -I${TCLCONFIGDIR}/../generic -o kit *.c $(find "${OTHERPKGSDIR}" -name '*.a' | grep '/inst/') -lz -lm -ldl -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic + ## TODO: XXX: Need to replace this with a configure script + ${CC:-cc} ${CPPFLAGS} ${CFLAGS} -I${TCLCONFIGDIR} -I${TCLCONFIGDIR}/../generic -o kit *.c $(find "${OTHERPKGSDIR}" -name '*.a' | grep '/inst/') ${LDFLAGS} -lz -lm -ldl -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic + strip kit >/dev/null 2>/dev/null # Create VFS directory mkdir "starpack.vfs" mkdir "starpack.vfs/lib" @@ -44,13 +45,14 @@ cp 'boot.tcl' 'starpack.vfs/' # Intall VFS onto kit if echo 'exit 0' | tclkit >/dev/null 2>/dev/null; then ## Install using existing Tclkit + ### Call installer tclkit installvfs.tcl kit starpack.vfs else - ## Bootstrap + ## Bootstrap (cannot cross-compile) ### Copy installed data for packages mkdir "installed-pkgs" cp -r "${OTHERPKGSDIR}"/*/inst/* 'installed-pkgs/' ### Call installer