Skip to content

Commit

Permalink
change inst_libparrot_* flags on Cygwin
Browse files Browse the repository at this point in the history
we need to link against the import library libparrot.dll.a in libdir,
NOT against the DLL cygparrot*.dll located in bindir
  • Loading branch information
gerdr committed Jan 19, 2012
1 parent 91106b7 commit d654278
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/init/hints/cygwin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ sub runstep {

my $build_dir = $conf->data->get('build_dir');
$build_dir =~ s/ /\\ /g;
my $bindir = $conf->data->get('bindir');
$bindir =~ s/ /\\ /g;
my $libdir = $conf->data->get('libdir');
$libdir =~ s/ /\\ /g;
my $libparrot_shared = $conf->data->get('libparrot_shared');
# force cyg prefix
$libparrot_shared =~ s/^lib/cyg/g;
Expand Down Expand Up @@ -50,9 +50,9 @@ sub runstep {
sym_import => '__declspec(dllimport)',
libparrot_shared => $libparrot_shared,
libparrot_ldflags => '-L' . $build_dir . ' -lparrot',
inst_libparrot_ldflags => '-L' . $bindir . ' -lparrot',
inst_libparrot_ldflags => '-L' . $libdir . ' -lparrot',
libparrot_linkflags => '-L' . $build_dir . ' -lparrot',
inst_libparrot_linkflags => '-L' . $bindir . ' -lparrot',
inst_libparrot_linkflags => '-L' . $libdir . ' -lparrot',
);

# inet_aton needs to be defined on Cygwin.
Expand Down

0 comments on commit d654278

Please sign in to comment.