Index: config/init/hints/cygwin.pm =================================================================== --- config/init/hints/cygwin.pm (revision 37891) +++ config/init/hints/cygwin.pm (working copy) @@ -19,6 +19,8 @@ my $build_dir = $conf->data->get('build_dir'); $build_dir =~ s/ /\\ /g; + my $bindir = $conf->data->get('bindir'); + $bindir =~ s/ /\\ /g; my $libparrot_shared = $conf->data->get('libparrot_shared'); # force cyg prefix $libparrot_shared =~ s/^lib/cyg/g; @@ -49,6 +51,7 @@ libparrot_shared => $libparrot_shared, blib_dir => '.', libparrot_ldflags => '-L' . $build_dir . ' -lparrot', + inst_libparrot_ldflags => '-L' . $bindir . ' -lparrot', ); # inet_aton needs to be defined on Cygwin. Index: config/init/hints/mswin32.pm =================================================================== --- config/init/hints/mswin32.pm (revision 37891) +++ config/init/hints/mswin32.pm (working copy) @@ -37,6 +37,12 @@ $conf->data->set( build_dir => Win32::GetShortPathName($build_dir) ); } + my $bindir = $conf->data->get('bindir'); + + if ( $bindir =~ /\s/ ) { + $conf->data->set( bindir => Win32::GetShortPathName($bindir) ); + } + if ($is_msvc) { my $msvcversion = $conf->data->get('msvcversion'); @@ -240,6 +246,7 @@ ld_load_flags => '-shared ', ld_share_flags => '-shared ', libparrot_ldflags => "\"$build_dir\\libparrot.dll\"", + inst_libparrot_ldflags => "\"$bindir\\libparrot.dll\"", ncilib_link_extra => 'src/libnci_test.def', sym_export => '__declspec(dllexport)', sym_import => '__declspec(dllimport)', Index: config/inter/libparrot.pm =================================================================== --- config/inter/libparrot.pm (revision 37891) +++ config/inter/libparrot.pm (working copy) @@ -128,6 +128,14 @@ ); } + unless ( defined( $conf->data->get('inst_libparrot_ldflags') ) ) { + $conf->data->set(inst_libparrot_ldflags => + '-L' + . $conf->data->get('libdir') + . ' -lparrot' + ); + } + $self->set_result( $parrot_is_shared ? 'yes' : 'no' ); return 1; Index: tools/dev/mk_language_shell.pl =================================================================== --- tools/dev/mk_language_shell.pl (revision 37891) +++ tools/dev/mk_language_shell.pl (working copy) @@ -316,7 +316,7 @@ CFLAGS := @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@ @gc_flag@ CC_OUT := @cc_o_out@ LD_OUT := @ld_out@ -#IF(parrot_is_shared):LIBPARROT := @libparrot_ldflags@ +#IF(parrot_is_shared):LIBPARROT := @inst_libparrot_ldflags@ #ELSE:LIBPARROT := OPS2C := $(PERL) $(LIB_DIR)/tools/build/ops2c.pl @@ -409,7 +409,7 @@ CFLAGS := @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@ @gc_flag@ CC_OUT := @cc_o_out@ LD_OUT := @ld_out@ -#IF(parrot_is_shared):LIBPARROT := @libparrot_ldflags@ +#IF(parrot_is_shared):LIBPARROT := @inst_libparrot_ldflags@ #ELSE:LIBPARROT := PMC2C_INCLUDES := --include $(SRC_DIR) --include $(SRC_DIR)/pmc