Skip to content

Commit

Permalink
Merge pull request #3 from timlegge/main
Browse files Browse the repository at this point in the history
libz needs to be linked explicitly on AIX
  • Loading branch information
timlegge committed Jun 15, 2024
2 parents d58e83e + 4d4c129 commit 8e00cef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,13 @@ my %args;
my ($major, $minor, $patch) = openssl_version();
print "Installed OpenSSL: $major.$minor.$patch\n";

my $libs = ' -lssl -lcrypto';
if ($Config{osname} eq 'aix') {
$libs = $libs . ' -lz';
}

$args{INC} = openssl_inc_paths();
$args{LIBS} = [openssl_lib_paths() . ' -lssl -lcrypto'];
$args{LIBS} = [openssl_lib_paths() . $libs];

my $cc_option_flags;

Expand Down
7 changes: 6 additions & 1 deletion maint/Makefile_header.PL
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ my %args;
my ($major, $minor, $patch) = openssl_version();
print "Installed OpenSSL: $major.$minor.$patch\n";

my $libs = ' -lssl -lcrypto';
if ($Config{osname} eq 'aix') {
$libs = $libs . ' -lz';
}

$args{INC} = openssl_inc_paths();
$args{LIBS} = [openssl_lib_paths() . ' -lssl -lcrypto'];
$args{LIBS} = [openssl_lib_paths() . $libs];

my $cc_option_flags;

Expand Down

0 comments on commit 8e00cef

Please sign in to comment.