summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssl/openssl
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2018-08-20 17:47:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-08-21 14:49:42 +0100
commit4cdbea37470d4f4f8e8796bf2f51b2e1857ba8b7 (patch)
tree4e3bbe8efbd2efd2d3c8123a8428b237a5603483 /meta/recipes-connectivity/openssl/openssl
parent920e9a4ac40bdd1923cbb63959af15f449d5323b (diff)
downloadpoky-4cdbea37470d4f4f8e8796bf2f51b2e1857ba8b7.tar.gz
openssl: fix hardcoded paths in native for openssl 1.1
Relying on hardcoded built-in paths causes openssl-native to not be relocateable from sstate. Solution for openssl 1.1, based on the existing solution from openssl 1.0: http://git.openembedded.org/openembedded-core/commit/?id=771d3123331fbfab1eb9ce47e3013eabcb2248f5 (From OE-Core rev: c226820183f44a2830b5172cac5888b17872c5c8) Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssl/openssl')
-rw-r--r--meta/recipes-connectivity/openssl/openssl/0001-allow-OPENSSLDIR-and-ENGINESDIR-CFLAGS-to-be-control.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssl/openssl/0001-allow-OPENSSLDIR-and-ENGINESDIR-CFLAGS-to-be-control.patch b/meta/recipes-connectivity/openssl/openssl/0001-allow-OPENSSLDIR-and-ENGINESDIR-CFLAGS-to-be-control.patch
new file mode 100644
index 0000000000..67d06fc78e
--- /dev/null
+++ b/meta/recipes-connectivity/openssl/openssl/0001-allow-OPENSSLDIR-and-ENGINESDIR-CFLAGS-to-be-control.patch
@@ -0,0 +1,39 @@
1From 26e98beb8a987cdc69699aaffc5599926fb1b293 Mon Sep 17 00:00:00 2001
2From: Andre McCurdy <armccurdy@gmail.com>
3Date: Fri, 17 Aug 2018 20:33:44 -0700
4Subject: [PATCH] allow OPENSSLDIR and ENGINESDIR CFLAGS to be controlled
5
6Upstream-Status: Inappropriate [OE Specific]
7
8Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
9---
10 Configurations/unix-Makefile.tmpl | 6 +++++-
11 1 file changed, 5 insertions(+), 1 deletion(-)
12
13diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
14index 034d93e..2310d12 100644
15--- a/Configurations/unix-Makefile.tmpl
16+++ b/Configurations/unix-Makefile.tmpl
17@@ -156,6 +156,10 @@ LIBDIR={- #
18 ENGINESDIR={- use File::Spec::Functions;
19 catdir($prefix,$libdir,"engines-$sover") -}
20
21+# Intermediate variables so the values defined via CFLAGS can be controlled.
22+OE_DOPENSSLDIR=$(OPENSSLDIR)
23+OE_DENGINESDIR=$(ENGINESDIR)
24+
25 # Convenience variable for those who want to set the rpath in shared
26 # libraries and applications
27 LIBRPATH=$(INSTALLTOP)/$(LIBDIR)
28@@ -174,7 +178,7 @@ HTMLSUFFIX=html
29
30 CROSS_COMPILE= {- $config{cross_compile_prefix} -}
31 CC= $(CROSS_COMPILE){- $target{cc} -}
32-CFLAGS={- our $cflags2 = join(" ",(map { "-D".$_} @{$target{defines}}, @{$config{defines}}),"-DOPENSSLDIR=\"\\\"\$(OPENSSLDIR)\\\"\"","-DENGINESDIR=\"\\\"\$(ENGINESDIR)\\\"\"") -} {- $target{cflags} -} {- $config{cflags} -}
33+CFLAGS={- our $cflags2 = join(" ",(map { "-D".$_} @{$target{defines}}, @{$config{defines}}),"-DOPENSSLDIR=\"\\\"\$(OE_DOPENSSLDIR)\\\"\"","-DENGINESDIR=\"\\\"\$(OE_DENGINESDIR)\\\"\"") -} {- $target{cflags} -} {- $config{cflags} -}
34 CFLAGS_Q={- $cflags2 =~ s|([\\"])|\\$1|g; $cflags2 -} {- $config{cflags} -}
35 LDFLAGS= {- $target{lflags}." ".$ENV{'LDFLAGS'} -}
36 PLIB_LDFLAGS= {- $target{plib_lflags} -}
37--
381.9.1
39