summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/mkimport
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-02-11 18:00:55 +0000
committerChristopher Faylor <me@cgf.cx>2011-02-11 18:00:55 +0000
commit98525461c875ab0808b7bfa4787d13ee2d413c40 (patch)
treed6d3252fd60f35119ee3cfd5e31b6b8698fd8f89 /winsup/cygwin/mkimport
parent0ff9e2473f90cb63ba8b196c7447e57686b967d2 (diff)
downloadcygnal-98525461c875ab0808b7bfa4787d13ee2d413c40.tar.gz
cygnal-98525461c875ab0808b7bfa4787d13ee2d413c40.tar.bz2
cygnal-98525461c875ab0808b7bfa4787d13ee2d413c40.zip
* 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.
Diffstat (limited to 'winsup/cygwin/mkimport')
-rwxr-xr-xwinsup/cygwin/mkimport5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/mkimport b/winsup/cygwin/mkimport
index 70c81048f..1dfcab3f4 100755
--- a/winsup/cygwin/mkimport
+++ b/winsup/cygwin/mkimport
@@ -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
+}