Tcl Extension Architecture (TEA) Sample Extension

Check-in [8a643db4a7]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Standardize environment variables for shell execution.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8a643db4a7ed9f74cda1d14add4b5a7c26ef8e125198addac7376c5abade5d07
User & Date: pooryorick 2018-06-05 18:40:53
Context
2018-06-05
18:59
Add gdb-test target. check-in: 908da789d2 user: pooryorick tags: trunk
18:40
Standardize environment variables for shell execution. check-in: 8a643db4a7 user: pooryorick tags: trunk
14:35
Refine the changes to the VALGRIND targets. check-in: 26c8d5fddd user: pooryorick tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Makefile.in.

   130    130   EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR)
   131    131   #EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
   132    132   TCLLIBPATH	= $(top_builddir)
   133    133   TCLSH_ENV	= TCL_LIBRARY=`@[email protected] $(TCL_SRC_DIR)/library`
   134    134   PKG_ENV		= @[email protected]="$(EXTRA_PATH):$(@[email protected])" \
   135    135   		  PATH="$(EXTRA_PATH):$(PATH)" \
   136    136   		  TCLLIBPATH="$(TCLLIBPATH)"
          137  +EXEC_ENV   = $(TCLSH_ENV) $(PKG_ENV)
   137    138   
   138    139   TCLSH_PROG	= @[email protected]
   139         -TCLSH		= $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG)
          140  +TCLSH		= $(EXEC_ENV) $(TCLSH_PROG)
   140    141   
   141    142   #WISH_ENV	= TK_LIBRARY=`@[email protected] $(TK_SRC_DIR)/library`
   142    143   #WISH_PROG	= @[email protected]
   143    144   #WISH		= $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG)
   144    145   
   145    146   SHARED_BUILD	= @[email protected]
   146    147   
................................................................................
   241    242   		-load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
   242    243   			[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"
   243    244   
   244    245   shell: binaries libraries
   245    246   	@$(TCLSH) $(SCRIPT)
   246    247   
   247    248   gdb:
   248         -	$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
          249  +	$(EXEC_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
   249    250   
   250         -VALGRIND     =  $(PKG_ENV) $(TCLSH_ENV) valgrind
          251  +VALGRIND     =  valgrind
   251    252   VALGRINDARGS =	--tool=memcheck --num-callers=8 --leak-resolution=high \
   252    253   		--leak-check=yes --show-reachable=yes -v
   253    254   
   254    255   valgrind: binaries libraries
   255         -	$(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
          256  +	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \
   256    257   		`@[email protected] $(srcdir)/tests/all.tcl` $(TESTFLAGS)
   257    258   
   258    259   valgrindshell: binaries libraries
   259         -	$(VALGRIND) valgrind $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
          260  +	$(EXEC_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT)
   260    261   
   261    262   depend:
   262    263   
   263    264   #========================================================================
   264    265   # $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
   265    266   # mentioned above.  That will ensure that this target is built when you
   266    267   # run "make binaries".