Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-04-10 08:29:25 +0400
committerChristopher Faylor <me@cgf.cx>2009-04-10 08:29:25 +0400
commit1318037e447dd88aed345e9748005b46802f50d2 (patch)
tree4317a608836b31e205f01c2c60f7ad41a87e1ebe /winsup/cygwin/speclib
parent59328e28c4a925d81c95c72002ba2d6118aa28d6 (diff)
* speclib: Use a more robust method to derive full file path.
Diffstat (limited to 'winsup/cygwin/speclib')
-rwxr-xr-xwinsup/cygwin/speclib6
1 files changed, 3 insertions, 3 deletions
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";