diff options
author | Thiago Macieira <thiago@macieira.org> | 2013-10-08 21:07:43 -0700 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2013-10-08 23:29:43 -0700 |
commit | 245e29a72e47177b3337f7046b6bb0702888e3d8 (patch) | |
tree | d6b006b0aecec3f700c5b371885df99291b55a7f /scripts/win-ldd.pl | |
parent | 9294d5984c2f0f052015573a3411de76f71b235f (diff) | |
download | subsurface-245e29a72e47177b3337f7046b6bb0702888e3d8.tar.gz |
Use the $PATH environment variable to pass extra dirs for DLLs
Unix developers, look away... this is how it's done on Windows: the
binary loader searches $PATH for the DLLs, so let's reuse the same
variable. This simplifies the command-line a little.
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'scripts/win-ldd.pl')
-rw-r--r-- | scripts/win-ldd.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/win-ldd.pl b/scripts/win-ldd.pl index 8af449a7b..6ca97b74a 100644 --- a/scripts/win-ldd.pl +++ b/scripts/win-ldd.pl @@ -2,7 +2,7 @@ use strict; my %deploy; my $objdump = $ENV{objdump} ? $ENV{objdump} : "i686-w64-mingw32-objdump"; -my @searchdirs; +my @searchdirs = split(/:/, $ENV{PATH}); sub addDependenciesFor($) { open OBJDUMP, "-|", $objdump, "-p", $_[0] or die; |