Index: README ================================================================== --- README +++ README @@ -70,10 +70,14 @@ 4. STATICTK Specify this as "1" to statically link to Tk. The default action on most platforms is to dynamically link to Tk. + 5. STRIP + Specifies the tool you wish to be called to strip object files, + archives, and shared objects. The default is "strip". You + should probably set this if you are cross-compiling. ------------------- Method of Operation ------------------- Index: build/make-kit-win32 ================================================================== --- build/make-kit-win32 +++ build/make-kit-win32 @@ -3,8 +3,9 @@ AR=i586-mingw32msvc-ar CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ RANLIB=i586-mingw32msvc-ranlib RC=i586-mingw32msvc-windres -export AR CC CXX RANLIB RC +STRIP=i586-mingw32msvc-strip +export AR CC CXX RANLIB RC STRIP -./kitcreator "$@" --host=i586-mingw32msvc --with-zlib=/home/rkeene/root/windows-i386 +./kitcreator "$@" --host=i586-mingw32msvc Index: itcl/build.sh ================================================================== --- itcl/build.sh +++ itcl/build.sh @@ -73,11 +73,11 @@ ${MAKE:-make} install mkdir "${OUTDIR}/lib" || exit 1 cp -r "${INSTDIR}/lib"/itcl*/ "${OUTDIR}/lib/" - strip -g "${OUTDIR}"/lib/itcl*/*.so >/dev/null 2>/dev/null + "${STRIP:-strip}" -g "${OUTDIR}"/lib/itcl*/*.so >/dev/null 2>/dev/null exit 0 ) || exit 1 exit 0 Index: kitsh/build.sh ================================================================== --- kitsh/build.sh +++ kitsh/build.sh @@ -52,11 +52,11 @@ ./configure --with-tcl="${TCLCONFIGDIR}" --with-zlib="${ZLIBDIR}" ${CONFIGUREEXTRA} fi ${MAKE:-make} || exit 1 # Strip the kit of all symbols, if possible - strip kit >/dev/null 2>/dev/null + "${STRIP:-strip}" kit >/dev/null 2>/dev/null # Create VFS directory mkdir "starpack.vfs" mkdir "starpack.vfs/lib" Index: tk/build.sh ================================================================== --- tk/build.sh +++ tk/build.sh @@ -88,11 +88,11 @@ mkdir "${OUTDIR}/lib" || exit 1 cp -r "${INSTDIR}/lib"/tk*/ "${OUTDIR}/lib/" cp -r "${INSTDIR}/lib"/libtk* "${OUTDIR}/lib"/tk*/ rm -rf "${OUTDIR}/lib"/tk*/demos - strip -g "${OUTDIR}"/lib/tk*/*.so >/dev/null 2>/dev/null + "${STRIP:-strip}" -g "${OUTDIR}"/lib/tk*/*.so >/dev/null 2>/dev/null find "${OUTDIR}" -type f -name '*.a' | xargs rm -f >/dev/null 2>/dev/null break done