Configure: Added a targetenv variable
authorBrian Fraser <fraserbn@gmail.com>
Wed, 15 Jan 2014 18:56:22 +0000 (15:56 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Thu, 30 Jan 2014 20:49:59 +0000 (17:49 -0300)
Currently this is only used during make test, and allows setting
the environment of the target before running tests.

Configure
Makefile.SH

index 21eb8dc..48c719d 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -209,6 +209,7 @@ from=''
 run=''
 targetarch=''
 targetdir=''
+targetenv=''
 targethost=''
 targetmkdir=''
 targetport=''
@@ -23859,6 +23860,7 @@ tail='$tail'
 tar='$tar'
 targetarch='$targetarch'
 targetdir='$targetdir'
+targetenv='$targetenv'
 targethost='$targethost'
 targetmkdir='$targetmkdir'
 targetport='$targetport'
index 74a0bca..b122526 100755 (executable)
@@ -1484,7 +1484,7 @@ test check: test_prep
 *) $spitshell >>$Makefile <<!GROK!THIS!
 
 test check: test_prep
-       $run -cwd $targetdir/t -env LD_LIBRARY_PATH=$targetdir:$targetdir/lib:$targetdir/lib/auto ./TEST
+       $run -cwd $targetdir/t -env "$targetenv LD_LIBRARY_PATH=$targetdir:$targetdir/lib:$targetdir/lib/auto:\$\$LD_LIBRARY_PATH" ./TEST
 
 !GROK!THIS!
 ;;