summaryrefslogtreecommitdiffstats
path: root/meta-networking
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-09-01 11:40:15 -0700
committerKhem Raj <raj.khem@gmail.com>2020-09-01 15:37:44 -0700
commit40ef9eea78a76397b809b7476d9a35b57e6df988 (patch)
tree31c687e8e0fee88e6c4da777323748e66fafdf9f /meta-networking
parent9b23aab0dd723688e3bb69c6e8a17796dae1208c (diff)
downloadmeta-openembedded-40ef9eea78a76397b809b7476d9a35b57e6df988.tar.gz
bearssl: fix GNU_HASH link error
Fixes No GNU_HASH in the ELF binary /mnt/b/yoe/master/build/tmp/work/cortexa57-yoe-linux/bearssl/0.6-r0/packages-split/bearssl/usr/lib/libbearssl.so.6.0.0, didn't pass LDFLAGS? [ldflag s] Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r--meta-networking/recipes-connectivity/bearssl/bearssl/0001-make-Pass-LDFLAGS-when-building-shared-objects.patch32
-rw-r--r--meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/bearssl/bearssl/0001-make-Pass-LDFLAGS-when-building-shared-objects.patch b/meta-networking/recipes-connectivity/bearssl/bearssl/0001-make-Pass-LDFLAGS-when-building-shared-objects.patch
new file mode 100644
index 000000000..3b341e035
--- /dev/null
+++ b/meta-networking/recipes-connectivity/bearssl/bearssl/0001-make-Pass-LDFLAGS-when-building-shared-objects.patch
@@ -0,0 +1,32 @@
1From 9515448761739d6186e7d07da5b47e368753528c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 1 Sep 2020 11:34:33 -0700
4Subject: [PATCH] make: Pass LDFLAGS when building shared objects
5
6OE passes flags like hash-style via LDFLAGS which alters the linker
7defaults, its important to have LDFLAGS in link step even if compiler
8driver is used to do linking
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 mk/Rules.mk | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/mk/Rules.mk b/mk/Rules.mk
18index b480bd6..db65125 100644
19--- a/mk/Rules.mk
20+++ b/mk/Rules.mk
21@@ -344,7 +344,7 @@ $(BEARSSLLIB): $(OBJDIR) $(OBJ)
22 $(AR) $(ARFLAGS) $(AROUT)$(BEARSSLLIB) $(OBJ)
23
24 $(BEARSSLDLL): $(OBJDIR) $(OBJ)
25- $(LDDLL) $(LDDLLFLAGS) $(LDDLLOUT)$(BEARSSLDLL) $(OBJ)
26+ $(LDDLL) $(LDDLLFLAGS) $(LDFLAGS) $(LDDLLOUT)$(BEARSSLDLL) $(OBJ)
27
28 $(BRSSL): $(BEARSSLLIB) $(OBJBRSSL)
29 $(LD) $(LDFLAGS) $(LDOUT)$(BRSSL) $(OBJBRSSL) $(BEARSSLLIB)
30--
312.28.0
32
diff --git a/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb b/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb
index 74a876987..1102bb95a 100644
--- a/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb
+++ b/meta-networking/recipes-connectivity/bearssl/bearssl_0.6.bb
@@ -27,6 +27,7 @@ SRCREV = "8ef7680081c61b486622f2d983c0d3d21e83caad"
27SRC_URI = "git://www.bearssl.org/git/BearSSL;protocol=https;nobranch=1 \ 27SRC_URI = "git://www.bearssl.org/git/BearSSL;protocol=https;nobranch=1 \
28 file://0001-conf-Unix.mk-remove-fixed-command-definitions.patch \ 28 file://0001-conf-Unix.mk-remove-fixed-command-definitions.patch \
29 file://0002-test-test_x509.c-fix-potential-overflow-issue.patch \ 29 file://0002-test-test_x509.c-fix-potential-overflow-issue.patch \
30 file://0001-make-Pass-LDFLAGS-when-building-shared-objects.patch \
30 " 31 "
31 32
32# without compile errors like 33# without compile errors like