Ticket #535: link-installed.patch

File link-installed.patch, 3.2 KB (added by fperrad, 13 years ago)
  • config/init/hints/cygwin.pm

     
    1919 
    2020    my $build_dir = $conf->data->get('build_dir'); 
    2121    $build_dir =~ s/ /\\ /g; 
     22    my $bindir = $conf->data->get('bindir'); 
     23    $bindir =~ s/ /\\ /g; 
    2224    my $libparrot_shared = $conf->data->get('libparrot_shared'); 
    2325    # force cyg prefix 
    2426    $libparrot_shared =~ s/^lib/cyg/g; 
     
    4951        libparrot_shared    => $libparrot_shared, 
    5052        blib_dir            => '.', 
    5153        libparrot_ldflags   => '-L' . $build_dir . ' -lparrot', 
     54        inst_libparrot_ldflags => '-L' . $bindir . ' -lparrot', 
    5255    ); 
    5356 
    5457    # inet_aton needs to be defined on Cygwin. 
  • config/init/hints/mswin32.pm

     
    3737        $conf->data->set( build_dir => Win32::GetShortPathName($build_dir) ); 
    3838    } 
    3939 
     40    my $bindir = $conf->data->get('bindir'); 
     41 
     42    if ( $bindir =~ /\s/ ) { 
     43        $conf->data->set( bindir => Win32::GetShortPathName($bindir) ); 
     44    } 
     45 
    4046    if ($is_msvc) { 
    4147        my $msvcversion = $conf->data->get('msvcversion'); 
    4248 
     
    240246            ld_load_flags       => '-shared ', 
    241247            ld_share_flags      => '-shared ', 
    242248            libparrot_ldflags   => "\"$build_dir\\libparrot.dll\"", 
     249            inst_libparrot_ldflags => "\"$bindir\\libparrot.dll\"", 
    243250            ncilib_link_extra   => 'src/libnci_test.def', 
    244251            sym_export          => '__declspec(dllexport)', 
    245252            sym_import          => '__declspec(dllimport)', 
  • config/inter/libparrot.pm

     
    128128        ); 
    129129    } 
    130130 
     131    unless ( defined( $conf->data->get('inst_libparrot_ldflags') ) ) { 
     132        $conf->data->set(inst_libparrot_ldflags => 
     133        '-L' 
     134        . $conf->data->get('libdir') 
     135        . ' -lparrot' 
     136        ); 
     137    } 
     138 
    131139    $self->set_result( $parrot_is_shared ? 'yes' : 'no' ); 
    132140 
    133141    return 1; 
  • tools/dev/mk_language_shell.pl

     
    316316CFLAGS        := @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@ @gc_flag@ 
    317317CC_OUT        := @cc_o_out@ 
    318318LD_OUT        := @ld_out@ 
    319 #IF(parrot_is_shared):LIBPARROT     := @libparrot_ldflags@ 
     319#IF(parrot_is_shared):LIBPARROT     := @inst_libparrot_ldflags@ 
    320320#ELSE:LIBPARROT     := 
    321321 
    322322OPS2C           := $(PERL) $(LIB_DIR)/tools/build/ops2c.pl 
     
    409409CFLAGS        := @ccflags@ @cc_shared@ @cc_debug@ @ccwarn@ @cc_hasjit@ @cg_flag@ @gc_flag@ 
    410410CC_OUT        := @cc_o_out@ 
    411411LD_OUT        := @ld_out@ 
    412 #IF(parrot_is_shared):LIBPARROT     := @libparrot_ldflags@ 
     412#IF(parrot_is_shared):LIBPARROT     := @inst_libparrot_ldflags@ 
    413413#ELSE:LIBPARROT     := 
    414414 
    415415PMC2C_INCLUDES  := --include $(SRC_DIR) --include $(SRC_DIR)/pmc