Index: itcl/build.sh ================================================================== --- itcl/build.sh +++ itcl/build.sh @@ -17,10 +17,17 @@ SRCURL="http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/${ITCLVERS}/itcl${ITCLVERS}${ITCLVERSEXTRA}.tar.gz/download" BUILDDIR="$(pwd)/build/itcl${ITCLVERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" export ITCLVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_ITCL_LDFLAGS}" +CFLAGS="${KC_ITCL_CFLAGS}" +CPPFLAGS="${KC_ITCL_CPPFLAGS}" +LIBS="${KC_ITCL_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 # Determine if Itcl is even needed Index: kitsh/build.sh ================================================================== --- kitsh/build.sh +++ kitsh/build.sh @@ -15,10 +15,17 @@ BUILDDIR="$(pwd)/build/kitsh-${KITSHVERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" OTHERPKGSDIR="$(pwd)/../" export KITSHVERS BUILDDIR OUTDIR INSTDIR OTHERPKGSDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_KITSH_LDFLAGS}" +CFLAGS="${KC_KITSH_CFLAGS}" +CPPFLAGS="${KC_KITSH_CPPFLAGS}" +LIBS="${KC_KITSH_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS if [ -z "${ENABLECOMPRESSION}" ]; then ENABLECOMPRESSION="1" fi export ENABLECOMPRESSION Index: mk4tcl/build.sh ================================================================== --- mk4tcl/build.sh +++ mk4tcl/build.sh @@ -17,10 +17,17 @@ BUILDDIR="$(pwd)/build/metakit-${MK4VERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" PATCHDIR="$(pwd)/patches" export MK4VERS SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_MK4TCL_LDFLAGS}" +CFLAGS="${KC_MK4TCL_CFLAGS}" +CPPFLAGS="${KC_MK4TCL_CPPFLAGS}" +LIBS="${KC_MK4TCL_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 TCL_VERSION="unknown" Index: tcl/build.sh ================================================================== --- tcl/build.sh +++ tcl/build.sh @@ -17,10 +17,17 @@ OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" PATCHSCRIPTDIR="$(pwd)/patchscripts" PATCHDIR="$(pwd)/patches" export SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHSCRIPTDIR PATCHDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_TCL_LDFLAGS}" +CFLAGS="${KC_TCL_CFLAGS}" +CPPFLAGS="${KC_TCL_CPPFLAGS}" +LIBS="${KC_TCL_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 if [ ! -f "${SRC}" ]; then Index: tclvfs/build.sh ================================================================== --- tclvfs/build.sh +++ tclvfs/build.sh @@ -17,10 +17,17 @@ BUILDDIR="$(pwd)/build/tclvfs-${TCLVFSVERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" PATCHDIR="$(pwd)/patches" export TCLVFSVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_TCLVFS_LDFLAGS}" +CFLAGS="${KC_TCLVFS_CFLAGS}" +CPPFLAGS="${KC_TCLVFS_CPPFLAGS}" +LIBS="${KC_TCLVFS_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 TCL_VERSION="unknown" Index: thread/build.sh ================================================================== --- thread/build.sh +++ thread/build.sh @@ -16,10 +16,17 @@ SRCURL="http://sourceforge.net/projects/tcl/files/Thread%20Extension/${THREADVERS}/thread${THREADVERS}.tar.gz/download" BUILDDIR="$(pwd)/build/thread${THREADVERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" export ITCLVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_THREAD_LDFLAGS}" +CFLAGS="${KC_THREAD_CFLAGS}" +CPPFLAGS="${KC_THREAD_CPPFLAGS}" +LIBS="${KC_THREAD_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 # Determine if Threads is even needed Index: tk/build.sh ================================================================== --- tk/build.sh +++ tk/build.sh @@ -17,10 +17,17 @@ PATCHDIR="$(pwd)/patches" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" PATCHSCRIPTDIR="$(pwd)/patchscripts" export SRC SRCURL BUILDDIR PATCHDIR OUTDIR INSTDIR PATCHSCRIPTDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_TK_LDFLAGS}" +CFLAGS="${KC_TK_CFLAGS}" +CPPFLAGS="${KC_TK_CPPFLAGS}" +LIBS="${KC_TK_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS # Must be kept in-sync with "../tcl/build.sh" TCLFOSSILDATE="../tcl/src/tcl${TCLVERS}.tar.gz.date" export TCLFOSSILDATE Index: zlib/build.sh ================================================================== --- zlib/build.sh +++ zlib/build.sh @@ -16,10 +16,17 @@ SRCURL="http://sourceforge.net/projects/libpng/files/zlib/${ZLIBVERS}/zlib-${ZLIBVERS}.tar.gz/download" BUILDDIR="$(pwd)/build/zlib-${ZLIBVERS}" OUTDIR="$(pwd)/out" INSTDIR="$(pwd)/inst" export ZLIBVERS SRC SRCURL BUILDDIR OUTDIR INSTDIR + +# Set configure options for this sub-project +LDFLAGS="${KC_ZLIB_LDFLAGS}" +CFLAGS="${KC_ZLIB_CFLAGS}" +CPPFLAGS="${KC_ZLIB_CPPFLAGS}" +LIBS="${KC_ZLIB_LIBS}" +export LDFLAGS CFLAGS CPPFLAGS LIBS rm -rf 'build' 'out' 'inst' mkdir 'build' 'out' 'inst' || exit 1 if [ ! -f "${SRC}" ]; then