diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 8a9a76921..6831ea1b5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2009-04-10 Christopher Faylor + + * speclib: Use a more robust method to derive full file path. + 2009-04-09 Christopher Faylor * speclib: Semi-revert to previous version but don't try to generate diff --git a/winsup/cygwin/speclib b/winsup/cygwin/speclib index e1e9ebcad..b26644a1f 100755 --- a/winsup/cygwin/speclib +++ b/winsup/cygwin/speclib @@ -2,7 +2,7 @@ use Getopt::Long; use File::Temp qw'tempdir'; use File::Basename; -use Cwd; +use File::Spec; use strict; sub dllname($;$); @@ -14,8 +14,8 @@ GetOptions('static!'=>\$static, 'v|exclude!'=>\$exclude); my $nm = shift; my $ar = shift; -my $libdll = Cwd::abs_path(shift @ARGV); -my $lib = Cwd::abs_path(pop @ARGV); +my $libdll = File::Spec->rel2abs(shift @ARGV); +my $lib = File::Spec->rel2abs(pop @ARGV); open my $nm_fd, '-|', $nm, '-Ap', '--defined-only', @ARGV, $libdll or die "$0: execution of $nm for object files failed - $!\n";