Changeset 8704

Show
Ignore:
Timestamp:
01/16/06 18:17:43 (3 years ago)
Author:
putter
Message:

pugs can again find libparrot.
Makefile.PL - parrot's rpath_blib configuation variable is -optl'ified and added to $ccdlflags.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Makefile.PL

    r8673 r8704  
    317317        my $libs = parrot_config($base, $parrot_config, 'libs'); 
    318318        my $icuflags = parrot_config($base, $parrot_config, 'icu_shared'); 
    319                     my $include_path = parrot_config($base, $parrot_config, 'prefix') . parrot_config($base, $parrot_config, 'inc'); 
     319        my $include_path = parrot_config($base, $parrot_config, 'prefix') . parrot_config($base, $parrot_config, 'inc'); 
     320        my $rpath_blib = parrot_config($base, $parrot_config, 'rpath_blib'); 
    320321 
    321322        # Convert flags to -optc-* 
     
    325326        $include_path =~ s/-/-optc-/g; 
    326327        $embed_flags .= " -I$include_path" if $include_path =~ /\S/; 
     328        $rpath_blib =~ s/(^| )-/$1-optl-/g; 
    327329 
    328330        $embed_flags .= " -I$base/include -L$base/blib/lib -L$base/lib/blib/lib -DPUGS_HAVE_PARROT -L/usr/local/lib $ldflags "; 
     
    330332        my $config = "$base/src/parrot_config$Config{_o}"; 
    331333        $ghc_output .= " $config " if -e $config; 
     334        $ccdlflags .= " $rpath_blib "; 
    332335 
    333336        # parrot include paths for hsc2hs