Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch to build on Haiku #486

Open
nigelhorne opened this issue Sep 26, 2024 · 1 comment
Open

Patch to build on Haiku #486

nigelhorne opened this issue Sep 26, 2024 · 1 comment

Comments

@nigelhorne
Copy link

Please consider this patch, with it Net::SSLeay now build on Haiku R1/Beta5:

*** ../Net-SSLeay-1.94-5/Makefile.PL	2024-01-07 19:43:17.050593792 -0500
--- ./Makefile.PL	2024-09-26 10:44:10.662700032 -0400
***************
*** 120,125 ****
--- 120,130 ----
  # macros are available).
  add_ccflag( $eumm_args{CCFLAGS}, "-DNET_SSLEAY_PERL_VERSION=" . $] * 1e6 );
  
+ if(-d '/boot/system/develop/headers/x86/openssl') {
+ 	# Haiku
+ 	add_ccflag($eumm_args{'CCFLAGS'}, '-I/boot/system/develop/headers/x86/openssl');
+ }
+ 
  # Suppress deprecation warnings during compilation.
  # https://www.openssl.org/docs/manmaster/man7/openssl_user_macros.html
  add_ccflag( $eumm_args{CCFLAGS}, '-DOPENSSL_API_COMPAT=908' );
***************
*** 224,229 ****
--- 229,235 ----
      my @try_includes = (
          'include' => sub { 1 },
          'inc32'   => sub { $OSNAME eq 'MSWin32' },
+ 	'/boot/system/develop/headers/x86' => sub { $OSNAME eq 'haiku' },
      );
  
      while (
***************
*** 235,240 ****
--- 241,250 ----
                             || -f "$prefix/$dir/ssl.h")) {
              $opts->{inc_path} = "$prefix/$dir";
          }
+ 	if($cond->() && (-f "/$dir/openssl/ssl.h")) {
+ 		# e.g Haiku
+ 		$opts->{inc_path} = $dir;
+ 	}
      }
  
      # Directory order matters. With macOS Monterey a poisoned dylib is
@h-vn
Copy link
Contributor

h-vn commented Oct 29, 2024

Thanks! Some time, soon hopefully, we'll update the CI with the latest OpenSSL and LibreSSL and work on the issues and pull requests. This should go in then too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants