Check-in [d2e00f0f73]
Overview
Comment:Added support for specifying a STRIP environment variable
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d2e00f0f73151395246389666341d107fb5dade4
User & Date: rkeene on 2010-09-26 04:41:24
Other Links: manifest | tags
Context
2010-09-26
04:41
Added support for the Thread package if asked to compile a threaded Tcl check-in: 021ebbd5e8 user: rkeene tags: trunk
04:41
Added support for specifying a STRIP environment variable check-in: d2e00f0f73 user: rkeene tags: trunk
04:41
Added Tk/xlib to include search path check-in: b5c571778a user: rkeene tags: trunk
Changes

Modified README from [39c5346f75] to [f879dbf338].

    68     68   		system.  The default is "tclkit".  A working tclkit is required
    69     69   		for cross-compiling Tclkits.
    70     70   
    71     71   	4. STATICTK
    72     72   		Specify this as "1" to statically link to Tk.  The default
    73     73   		action on most platforms is to dynamically link to Tk.
    74     74   
           75  +	5. STRIP
           76  +		Specifies the tool you wish to be called to strip object files,
           77  +		archives, and shared objects.  The default is "strip".  You
           78  +		should probably set this if you are cross-compiling.
    75     79   
    76     80   
    77     81   -------------------
    78     82   Method of Operation
    79     83   -------------------
    80     84   Summary:
    81     85   	1. "kitcreator" calls */build.sh

Modified build/make-kit-win32 from [d9637ee9cf] to [34e60fa0c9].

     1      1   #! /bin/sh
     2      2   
     3      3   AR=i586-mingw32msvc-ar
     4      4   CC=i586-mingw32msvc-gcc
     5      5   CXX=i586-mingw32msvc-g++
     6      6   RANLIB=i586-mingw32msvc-ranlib
     7      7   RC=i586-mingw32msvc-windres
     8         -export AR CC CXX RANLIB RC
            8  +STRIP=i586-mingw32msvc-strip
            9  +export AR CC CXX RANLIB RC STRIP
     9     10   
    10         -./kitcreator "$@" --host=i586-mingw32msvc --with-zlib=/home/rkeene/root/windows-i386
           11  +./kitcreator "$@" --host=i586-mingw32msvc

Modified itcl/build.sh from [faf1ba23d7] to [7b29c2b2f9].

    71     71   	${MAKE:-make} || exit 1
    72     72   
    73     73   	${MAKE:-make} install
    74     74   
    75     75   	mkdir "${OUTDIR}/lib" || exit 1
    76     76   	cp -r "${INSTDIR}/lib"/itcl*/ "${OUTDIR}/lib/"
    77     77   
    78         -	strip -g "${OUTDIR}"/lib/itcl*/*.so >/dev/null 2>/dev/null
           78  +	"${STRIP:-strip}" -g "${OUTDIR}"/lib/itcl*/*.so >/dev/null 2>/dev/null
    79     79   
    80     80   	exit 0
    81     81   ) || exit 1
    82     82   
    83     83   exit 0

Modified kitsh/build.sh from [73b3561dba] to [2d66362eb1].

    50     50   		echo "./configure --with-tcl=\"${TCLCONFIGDIR}\" --with-zlib=\"${ZLIBDIR}\" ${CONFIGUREEXTRA}"
    51     51   
    52     52   		./configure --with-tcl="${TCLCONFIGDIR}" --with-zlib="${ZLIBDIR}" ${CONFIGUREEXTRA}
    53     53   	fi
    54     54   	${MAKE:-make} || exit 1
    55     55   
    56     56   	# Strip the kit of all symbols, if possible
    57         -	strip kit >/dev/null 2>/dev/null
           57  +	"${STRIP:-strip}" kit >/dev/null 2>/dev/null
    58     58   
    59     59   	# Create VFS directory
    60     60   	mkdir "starpack.vfs"
    61     61   	mkdir "starpack.vfs/lib"
    62     62   
    63     63   	## Copy in all built directories
    64     64   	cp -r "${OTHERPKGSDIR}"/*/out/* 'starpack.vfs/'

Modified tk/build.sh from [25355eced1] to [3efb154a49].

    86     86   		done
    87     87   
    88     88   		mkdir "${OUTDIR}/lib" || exit 1
    89     89   		cp -r "${INSTDIR}/lib"/tk*/ "${OUTDIR}/lib/"
    90     90   		cp -r "${INSTDIR}/lib"/libtk* "${OUTDIR}/lib"/tk*/
    91     91   		rm -rf "${OUTDIR}/lib"/tk*/demos
    92     92   
    93         -		strip -g "${OUTDIR}"/lib/tk*/*.so >/dev/null 2>/dev/null
           93  +		"${STRIP:-strip}" -g "${OUTDIR}"/lib/tk*/*.so >/dev/null 2>/dev/null
    94     94   		find "${OUTDIR}" -type f -name '*.a' | xargs rm -f >/dev/null 2>/dev/null
    95     95   
    96     96   		break
    97     97   	done
    98     98   
    99     99   	exit 0
   100    100   ) || exit 1
   101    101   
   102    102   exit 0