summaryrefslogtreecommitdiffstats
path: root/package/perl-net-ssleay/perl-net-ssleay.mk
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2014-07-13 15:03:22 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-14 13:08:40 +0200
commit200ac4862a882cfd3e4edfd1868652c2985215e7 (patch)
treef698069c0a699bc5ecb0a5621e83d80c99f82d37 /package/perl-net-ssleay/perl-net-ssleay.mk
parent734b34f520ab0a14a9c54341e32bd067058b7996 (diff)
downloadbuildroot-200ac4862a882cfd3e4edfd1868652c2985215e7.tar.gz
buildroot-200ac4862a882cfd3e4edfd1868652c2985215e7.zip
package/perl-net-ssleay: fix buildsystem for cross-compilation
The buildsystem for perl-net-ssleay is totally brain-damaged: it tries to execute the openssl program. It uses that to check the openssl version, detect the prefix to openssl, and set the include and library search paths. Of course, it does not handle the destdir idiom, so it ends up finding the host system's openssl (not even ours!), so it sets search paths to /usr/inlcude and /usr/lib and /lib. Well, guess what? It does not work. Fix that by: - passing the prefix to openssl in the environment, so it does not go hunting for the host-system openssl; - not checking the version string, since we can't run, and Buildroot has the correct version anyway; - not setting any -I or -L paths since our compiler/linker already know where to look for for includes and libs. Fixes: http://autobuild.buildroot.net/results/135/135867ef85535863e3647cc5fb82accb6f77612c/ Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [me: enhance commit log, add patch to avoid running openssl and setting wrong include and library search paths] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/perl-net-ssleay/perl-net-ssleay.mk')
-rw-r--r--package/perl-net-ssleay/perl-net-ssleay.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/perl-net-ssleay/perl-net-ssleay.mk b/package/perl-net-ssleay/perl-net-ssleay.mk
index 413fdf0a21..4a362fb975 100644
--- a/package/perl-net-ssleay/perl-net-ssleay.mk
+++ b/package/perl-net-ssleay/perl-net-ssleay.mk
@@ -11,4 +11,8 @@ PERL_NET_SSLEAY_DEPENDENCIES = perl openssl
PERL_NET_SSLEAY_LICENSE = OpenSSL
PERL_NET_SSLEAY_LICENSE_FILES = LICENSE
+# Try as hard as possible to remedy to the brain-damage their build-system
+# suffers from: don't search for openssl, they pick the host-system one.
+PERL_NET_SSLEAY_CONF_ENV = OPENSSL_PREFIX=$(STAGING_DIR)/usr
+
$(eval $(perl-package))
OpenPOWER on IntegriCloud