Check-in [64d5a347c2]
Overview
Comment:Updated kitsh to use CFLAGS/CPPFLAGS/LDFLAGS

Updated kitsh comments

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:64d5a347c2a56a6853a68ae50800d0a07d00e847
User & Date: rkeene on 2010-09-26 04:37:24
Other Links: manifest | tags
Context
2010-09-26
04:37
Added stripping of debugging symbols for Tk/Itcl check-in: 89d8ca3eb2 user: rkeene tags: trunk
04:37
Updated kitsh to use CFLAGS/CPPFLAGS/LDFLAGS

Updated kitsh comments check-in: 64d5a347c2 user: rkeene tags: trunk

04:37
Cleaned up false error check-in: 082204b4b8 user: rkeene tags: trunk
Changes

Modified kitsh/build.sh from [f1a428a7f8] to [5e562476b7].

23
24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
..
42
43
44
45
46
47
48

49
50
51
52
53
54
55
56
57
58
59
60
61
62


(
	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


	# Create VFS directory
	mkdir "starpack.vfs"
	mkdir "starpack.vfs/lib"

	## Copy in all built directories
	cp -r "${OTHERPKGSDIR}"/*/out/* 'starpack.vfs/'
................................................................................

	## Install "boot.tcl"
	cp 'boot.tcl' 'starpack.vfs/'

	# Intall VFS onto kit
	if echo 'exit 0' | tclkit >/dev/null 2>/dev/null; then
		## Install using existing Tclkit

		tclkit installvfs.tcl kit starpack.vfs
	else
		## Bootstrap
		### Copy installed data for packages
		mkdir "installed-pkgs"
		cp -r "${OTHERPKGSDIR}"/*/inst/* 'installed-pkgs/'

		### Call installer
		${TCLCONFIGDIR}/tclsh installvfs.tcl kit starpack.vfs
	fi

) || exit 1

exit 0







|
|
>







 







>


|











23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
..
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64


(
	cp -r 'buildsrc' 'build'
	cd "${BUILDDIR}" || exit 1

	# Compile all objects...
	## 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"

	## Copy in all built directories
	cp -r "${OTHERPKGSDIR}"/*/out/* 'starpack.vfs/'
................................................................................

	## Install "boot.tcl"
	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 (cannot cross-compile)
		### Copy installed data for packages
		mkdir "installed-pkgs"
		cp -r "${OTHERPKGSDIR}"/*/inst/* 'installed-pkgs/'

		### Call installer
		${TCLCONFIGDIR}/tclsh installvfs.tcl kit starpack.vfs
	fi

) || exit 1

exit 0