perl-net-ssleay-0000-fix-build-system.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. buildsystem: fix for cross-compilation
  2. Avoid running the openssl binary, since it would break for
  3. cross-compilation. Buildroot has a supported version, anyway.
  4. Also, avoid adding hard-coded includes and libraries search
  5. paths, since they are missing the destdir; Buildroot compilers
  6. and linkers already know where to search, anyway.
  7. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  8. diff -durN perl-net-ssleay-1.64.orig/inc/Module/Install/PRIVATE/Net/SSLeay.pm perl-net-ssleay-1.64/inc/Module/Install/PRIVATE/Net/SSLeay.pm
  9. --- perl-net-ssleay-1.64.orig/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2014-04-01 08:08:37.000000000 +0200
  10. +++ perl-net-ssleay-1.64/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2014-07-13 00:38:46.281380282 +0200
  11. @@ -37,14 +37,18 @@
  12. exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library"
  13. }
  14. - $self->check_openssl_version($prefix, $exec);
  15. +# Does not work for cross-compilation.
  16. +# In Buildroot, we do have a supported version.
  17. +# $self->check_openssl_version($prefix, $exec);
  18. my $opts = $self->ssleay_get_build_opts($prefix, $exec);
  19. $self->makemaker_args(
  20. CCCDLFLAGS => $opts->{cccdlflags},
  21. OPTIMIZE => $opts->{optimize},
  22. - INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
  23. - LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
  24. +# Buildroot already has the correct include and library search paths.
  25. +# INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
  26. +# LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
  27. + LIBS => join(' ', (map {"-l$_"} @{$opts->{lib_links}})),
  28. );
  29. if ( $self->prompt(