* mkstatic: Make sure that we are not cd'ed to temporary directory on exit to

avoid bogus warnings on directory cleanup.
* speclib: Ditto.
* mkimport: Ditto.
This commit is contained in:
Christopher Faylor
2011-02-11 18:00:55 +00:00
parent 0ff9e2473f
commit 98525461c8
4 changed files with 20 additions and 2 deletions

View File

@@ -80,5 +80,8 @@ for my $f (keys %text) {
unlink $libdll;
system $ar, 'crus', $libdll, glob('*.o'), @ARGV;
unlink glob('*.o');
chdir '/tmp'; # Allow $dir directory removal on Windows
exit 1 if $?;
END {
chdir '/tmp'; # Allow $dir directory removal on Windows
}