• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/perl-net-ssleay/perl-net-ssleay-0000-fix-build-system.patch
Francois PerradFrancois Perrad committed 200ac4862a813 Jul 2014
Raw file
Source viewDiff to previous
 
1
buildsystem: fix for cross-compilation
2
​
3
Avoid running the openssl binary, since it would break for
4
cross-compilation. Buildroot has a supported version, anyway.
5
​
6
Also, avoid adding hard-coded includes and libraries search
7
paths, since they are missing the destdir; Buildroot compilers
8
and linkers already know where to search, anyway.
9
​
10
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
11
​
12
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
13
--- perl-net-ssleay-1.64.orig/inc/Module/Install/PRIVATE/Net/SSLeay.pm  2014-04-01 08:08:37.000000000 +0200
14
+++ perl-net-ssleay-1.64/inc/Module/Install/PRIVATE/Net/SSLeay.pm   2014-07-13 00:38:46.281380282 +0200
15
@@ -37,14 +37,18 @@
16
         exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library"
17
     }
18
 
19
-    $self->check_openssl_version($prefix, $exec);
20
+# Does not work for cross-compilation.
21
+# In Buildroot, we do have a supported version.
22
+#    $self->check_openssl_version($prefix, $exec);
23
     my $opts = $self->ssleay_get_build_opts($prefix, $exec);
24
 
25
     $self->makemaker_args(
26
         CCCDLFLAGS => $opts->{cccdlflags},
27
         OPTIMIZE => $opts->{optimize},
28
-        INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
29
-        LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
30
+# Buildroot already has the correct include and library search paths.
31
+#        INC => join(' ', map {"-I$_"} @{$opts->{inc_paths}}),
32
+#        LIBS => join(' ', (map {"-L$_"} @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
33
+        LIBS => join(' ', (map {"-l$_"} @{$opts->{lib_links}})),
34
     );
35
 
36
     if ( $self->prompt(
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.