* 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:
parent
0ff9e2473f
commit
98525461c8
|
@ -1,3 +1,10 @@
|
||||||
|
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>
|
2011-02-11 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* cygwin.sc: Eliminate __cygheap_mid.
|
* cygwin.sc: Eliminate __cygheap_mid.
|
||||||
|
|
|
@ -80,5 +80,8 @@ for my $f (keys %text) {
|
||||||
unlink $libdll;
|
unlink $libdll;
|
||||||
system $ar, 'crus', $libdll, glob('*.o'), @ARGV;
|
system $ar, 'crus', $libdll, glob('*.o'), @ARGV;
|
||||||
unlink glob('*.o');
|
unlink glob('*.o');
|
||||||
chdir '/tmp'; # Allow $dir directory removal on Windows
|
|
||||||
exit 1 if $?;
|
exit 1 if $?;
|
||||||
|
|
||||||
|
END {
|
||||||
|
chdir '/tmp'; # Allow $dir directory removal on Windows
|
||||||
|
}
|
||||||
|
|
|
@ -55,5 +55,9 @@ exit 0;
|
||||||
|
|
||||||
sub xsystem(@) {
|
sub xsystem(@) {
|
||||||
print join(' ', 'x', @_), "\n" if $x;
|
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
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,3 +76,7 @@ $res = system $ar, 'crus', $lib, sort keys %extract;
|
||||||
unlink keys %extract;
|
unlink keys %extract;
|
||||||
die "$0: ar creation of $lib exited with non-zero status\n" if $res;
|
die "$0: ar creation of $lib exited with non-zero status\n" if $res;
|
||||||
exit 0;
|
exit 0;
|
||||||
|
|
||||||
|
END {
|
||||||
|
chdir '/tmp'; # Allow $dir directory removal on Windows
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue