dougm       01/10/11 12:32:43

  Modified:    lib/Apache Build.pm
  Log:
  fixup ldopts for hpux
  
  Revision  Changes    Path
  1.48      +8 -0      modperl-2.0/lib/Apache/Build.pm
  
  Index: Build.pm
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- Build.pm  2001/09/13 02:01:31     1.47
  +++ Build.pm  2001/10/11 19:32:43     1.48
  @@ -127,6 +127,14 @@
       my $ldopts = ExtUtils::Embed::ldopts();
       chomp $ldopts;
   
  +    if ($^O eq 'hpux' and $Config{ld} eq 'ld') {
  +        while ($ldopts =~ s/-Wl,(\S+)/$1/) {
  +            my $cp = $1;
  +            (my $repl = $cp) =~ s/,/ /g;
  +            $ldopts =~ s/\Q$cp/$repl/;
  +        }
  +    }
  +
       if ($self->{MP_USE_GTOP}) {
           $ldopts .= $self->gtop_ldopts;
       }
  
  
  


Reply via email to