You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philippe M. Chiasson" <go...@ectoplasm.org> on 2004/09/20 23:07:39 UTC

[Patch mp2] linking against .libs/ directorys in httpd source tree

When processing libs path in httpd's source tree, we need to check
for .libs/ directory and add them to the -L path since the .so outside
of .dirs/ are libtools wrappers we cannot use.

-- 
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/     F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5

Re: [Patch mp2] linking against .libs/ directorys in httpd source tree

Posted by "Philippe M. Chiasson" <go...@ectoplasm.org>.
Stas Bekman wrote:

> Philippe M. Chiasson wrote:
>
>> When processing libs path in httpd's source tree, we need to check
>> for .libs/ directory and add them to the -L path since the .so outside
>> of .dirs/ are libtools wrappers we cannot use.
>
Comitted.

> +1
>
> -----------------------------------------------------------------------
>
>>
>> When processing libs path in httpd's source tree, we need to check
>> for .libs/ directory and add them to the -L path since the .so outside
>> of .dirs/ are libtools wrappers we cannot use.
>>
>> Index: lib/Apache/Build.pm
>> ===================================================================
>> RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
>> retrieving revision 1.179
>> diff -u -I$Id -r1.179 Build.pm
>> --- lib/Apache/Build.pm    18 Sep 2004 23:27:39 -0000    1.179
>> +++ lib/Apache/Build.pm    20 Sep 2004 20:52:30 -0000
>> @@ -950,6 +950,14 @@
>>      for ($self->apr_config_path, $self->apu_config_path) {
>>          if (my $link = $_ && -x $_ && qx{$_ --link-ld --libs}) {
>>              chomp $link;
>> +            if ($self->httpd_is_source_tree) {
>> +                my @libs;
>> +                while ($link =~ m/-L(\S+)/g) {
>> +                    my $dir = File::Spec->catfile($1, '.libs');
>> +                    push @libs, $dir if -d $dir;
>> +                }
>> +                push @apru_link_flags, join ' ', map { "-L$_" } @libs;
>> +            }
>>              push @apru_link_flags, $link;
>>          }
>>      }
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
>> For additional commands, e-mail: dev-help@perl.apache.org
>
>
>


Re: [Patch mp2] linking against .libs/ directorys in httpd source tree

Posted by Stas Bekman <st...@stason.org>.
Philippe M. Chiasson wrote:
> When processing libs path in httpd's source tree, we need to check
> for .libs/ directory and add them to the -L path since the .so outside
> of .dirs/ are libtools wrappers we cannot use.

+1

-----------------------------------------------------------------------
> 
> When processing libs path in httpd's source tree, we need to check
> for .libs/ directory and add them to the -L path since the .so outside
> of .dirs/ are libtools wrappers we cannot use.
> 
> Index: lib/Apache/Build.pm
> ===================================================================
> RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
> retrieving revision 1.179
> diff -u -I$Id -r1.179 Build.pm
> --- lib/Apache/Build.pm	18 Sep 2004 23:27:39 -0000	1.179
> +++ lib/Apache/Build.pm	20 Sep 2004 20:52:30 -0000
> @@ -950,6 +950,14 @@
>      for ($self->apr_config_path, $self->apu_config_path) {
>          if (my $link = $_ && -x $_ && qx{$_ --link-ld --libs}) {
>              chomp $link;
> +            if ($self->httpd_is_source_tree) {
> +                my @libs;
> +                while ($link =~ m/-L(\S+)/g) {
> +                    my $dir = File::Spec->catfile($1, '.libs');
> +                    push @libs, $dir if -d $dir;
> +                }
> +                push @apru_link_flags, join ' ', map { "-L$_" } @libs;
> +            }
>              push @apru_link_flags, $link;
>          }
>      }
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org