]> git.pld-linux.org Git - packages/poldek.git/blame - trurlib-shared.patch
- 2021 snap
[packages/poldek.git] / trurlib-shared.patch
CommitLineData
c905c5f8
JP
1From 67817281c4346832356febca89373742a0cde8b1 Mon Sep 17 00:00:00 2001
2From: Jan Palus <atler@pld-linux.org>
3Date: Sat, 31 Oct 2020 00:04:11 +0100
4Subject: [PATCH] create symbolic link for dynamic lib as well
5
6both tndb and vfile in poldek link against libtrurl and due to the way
7linking is configured it is always linked with static libtrurl (only
8libtrurl.a link provided). this causes two issues:
9
10- mixes dynamically linked libraries with statically linked libtrurl
11 and since nothing enforces -fPIC in the latter it results in error:
12
13libtool: warning: relinking 'libtndb.la'
14libtool: install: ... -o .libs/libtndb.so.0.2.0
15/usr/bin/ld: ./../trurlib/libtrurl.a(ndie.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__stack_chk_guard@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC
16/usr/bin/ld: ./../trurlib/libtrurl.a(ndie.o)(.text+0x8): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `__stack_chk_guard@@GLIBC_2.17'
17/usr/bin/ld: final link failed: bad value
18
19- includes copy of libtrurl in dynamic libraries even though poldek
20 provides dynamic libtrurl
21---
22 Makefile.am | 1 +
23 1 file changed, 1 insertion(+)
24
25diff --git a/Makefile.am b/Makefile.am
26index 7c41374..0d13380 100644
27--- a/Makefile.am
28+++ b/Makefile.am
29@@ -146,5 +146,6 @@ tests: $(EXTRA_PROGRAMS)
30
31 all-local:
32 @ln -sf .libs/libtrurl.a libtrurl.a
33+ @ln -sf .libs/libtrurl.so libtrurl.so
34
35 include Makefile.extra
This page took 0.066571 seconds and 4 git commands to generate.