diff options
author | Christopher Faylor <me@cgf.cx> | 2011-02-11 18:00:55 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-02-11 18:00:55 +0000 |
commit | 98525461c875ab0808b7bfa4787d13ee2d413c40 (patch) | |
tree | d6d3252fd60f35119ee3cfd5e31b6b8698fd8f89 /winsup/cygwin/mkimport | |
parent | 0ff9e2473f90cb63ba8b196c7447e57686b967d2 (diff) | |
download | cygnal-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-x | winsup/cygwin/mkimport | 5 |
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 +} |