mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9294d5984c
commit
245e29a72e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue