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 | |
parent | 0ff9e2473f90cb63ba8b196c7447e57686b967d2 (diff) | |
download | newlib-98525461c875ab0808b7bfa4787d13ee2d413c40.zip newlib-98525461c875ab0808b7bfa4787d13ee2d413c40.tar.gz newlib-98525461c875ab0808b7bfa4787d13ee2d413c40.tar.bz2 |
* 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')
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rwxr-xr-x | winsup/cygwin/mkimport | 5 | ||||
-rwxr-xr-x | winsup/cygwin/mkstatic | 6 | ||||
-rwxr-xr-x | winsup/cygwin/speclib | 4 |
4 files changed, 20 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a255a9b..ba0f222 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,12 @@ 2011-02-11 Christopher Faylor <me+cygwin@cgf.cx> + * 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. + +2011-02-11 Christopher Faylor <me+cygwin@cgf.cx> + * cygwin.sc: Eliminate __cygheap_mid. * cygheap.cc: Ditto. diff --git a/winsup/cygwin/mkimport b/winsup/cygwin/mkimport index 70c8104..1dfcab3 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 +} diff --git a/winsup/cygwin/mkstatic b/winsup/cygwin/mkstatic index b7a81b0..1a488f8 100755 --- a/winsup/cygwin/mkstatic +++ b/winsup/cygwin/mkstatic @@ -55,5 +55,9 @@ exit 0; sub xsystem(@) { print join(' ', 'x', @_), "\n" if $x; - system(@_) == 0 or die "$0: @_[0] $_[1] $_[2]... exited with non-zero status\n"; + system(@_) == 0 or die "$0: $_[0] $_[1] $_[2]... exited with non-zero status\n"; +} + +END { + chdir '/tmp'; # Allow $dir directory removal on Windows } diff --git a/winsup/cygwin/speclib b/winsup/cygwin/speclib index 7ac4d1c..7bac7ea 100755 --- a/winsup/cygwin/speclib +++ b/winsup/cygwin/speclib @@ -76,3 +76,7 @@ $res = system $ar, 'crus', $lib, sort keys %extract; unlink keys %extract; die "$0: ar creation of $lib exited with non-zero status\n" if $res; exit 0; + +END { + chdir '/tmp'; # Allow $dir directory removal on Windows +} |