X-Git-Url: https://git.tld-linux.org/?p=packages%2Fpoldek.git;a=blobdiff_plain;f=trurlib-shared.patch;fp=trurlib-shared.patch;h=77644866a46265a4d920f865631634a6b9c0295a;hp=0000000000000000000000000000000000000000;hb=b39c401088d0afae01ca65c90e8c59a77dbbcb57;hpb=ae8686af22109bd2ed8a8f3587e79209c7dbec0e diff --git a/trurlib-shared.patch b/trurlib-shared.patch new file mode 100644 index 0000000..7764486 --- /dev/null +++ b/trurlib-shared.patch @@ -0,0 +1,35 @@ +From 67817281c4346832356febca89373742a0cde8b1 Mon Sep 17 00:00:00 2001 +From: Jan Palus +Date: Sat, 31 Oct 2020 00:04:11 +0100 +Subject: [PATCH] create symbolic link for dynamic lib as well + +both tndb and vfile in poldek link against libtrurl and due to the way +linking is configured it is always linked with static libtrurl (only +libtrurl.a link provided). this causes two issues: + +- mixes dynamically linked libraries with statically linked libtrurl + and since nothing enforces -fPIC in the latter it results in error: + +libtool: warning: relinking 'libtndb.la' +libtool: install: ... -o .libs/libtndb.so.0.2.0 +/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 +/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' +/usr/bin/ld: final link failed: bad value + +- includes copy of libtrurl in dynamic libraries even though poldek + provides dynamic libtrurl +--- + Makefile.am | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/Makefile.am b/Makefile.am +index 7c41374..0d13380 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -146,5 +146,6 @@ tests: $(EXTRA_PROGRAMS) + + all-local: + @ln -sf .libs/libtrurl.a libtrurl.a ++ @ln -sf .libs/libtrurl.so libtrurl.so + + include Makefile.extra