Skip to content

Commit 9794729

Browse files
committed
Attempt to fix solaris issue by disabling inline optimization
1 parent 0ab1b9f commit 9794729

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile.PL

+5-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ if (-d "/usr/include/openssl") {
6363
}
6464

6565
cc_lib_links('crypto');
66-
cc_optimize_flags('-O3 -Wall -Werror -DOPENSSL_API_COMPAT=0x10100000L');
66+
if ($Config::Config{myuname} =~ /sunos|solaris/i) {
67+
cc_optimize_flags('-O2 -Wall -Werror -DOPENSSL_API_COMPAT=0x10100000L');
68+
} else {
69+
cc_optimize_flags('-O3 -Wall -Werror -DOPENSSL_API_COMPAT=0x10100000L');
70+
}
6771

6872
requires 'Crypt::OpenSSL::X509' => '1.807';
6973

0 commit comments

Comments
 (0)