This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/perl-Net-SSLeay.git#ebcaf5749f4556c561430d562f18434f4707e9f5
17 lines
718 B
Diff
17 lines
718 B
Diff
--- Makefile.PL
|
|
+++ Makefile.PL
|
|
@@ -209,7 +209,12 @@ EOM
|
|
@{ $opts->{lib_links} } = map { $_ =~ s/32\b//g } @{ $opts->{lib_links} } if $Config{use64bitall};
|
|
}
|
|
else {
|
|
- push @{ $opts->{lib_links} }, qw( ssl crypto z );
|
|
+ if ( eval { require ExtUtils::PkgConfig; ExtUtils::PkgConfig->VERSION('1.16') } && ExtUtils::PkgConfig->exists('openssl') ) {
|
|
+ push @{ $opts->{lib_links} }, map { s/^-l//; $_ } split(' ', ExtUtils::PkgConfig->libs_only_l('openssl'));
|
|
+ }
|
|
+ else {
|
|
+ push @{ $opts->{lib_links} }, qw( ssl crypto z );
|
|
+ }
|
|
|
|
if (($Config{cc} =~ /aCC/i) && $^O eq 'hpux') {
|
|
print "*** Enabling HPUX aCC options (+e)\n";
|