[projects/geninitrd] libpthread dlopens libgcc_s.so.1, so install it.
arekm
arekm at pld-linux.org
Tue Aug 14 13:58:05 CEST 2018
commit 042e65b6bf2018ce17fcc275b0f4da26ef2de2ff
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Tue Aug 14 13:09:55 2018 +0200
libpthread dlopens libgcc_s.so.1, so install it.
geninitrd | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index 025674d..50be081 100755
--- a/geninitrd
+++ b/geninitrd
@@ -538,15 +538,20 @@ inst_exec() {
inst "$@" $dest
- local obj lib libs libdir
+ local obj lib libs libs_additional libdir
for obj in "$@"; do
case "$obj" in
/lib/ld-linux.so.2 | /lib64/ld-linux-x86-64.so.2 | /libx32/ld-linux-x32.so.2)
continue
+ ;;
+ /lib/libpthread.so* | /lib64/libpthread.so* | /libx32/libpthread.so*)
+ libs_additional="${obj%/libpthread*}/libgcc_s.so.1"
+ ;;
esac
+
libs=$(ldd "$obj" | awk '/statically|linux-(gate|vdso)\.so/{next} NF == 2 {print $1} /=/{print $3}' | sort -u)
- for lib in $libs; do
+ for lib in $libs $libs_additional; do
libdir=$(cd $(dirname "$lib"); pwd)
if [ ! -f "$DESTDIR/$lib" ]; then
inst_d $libdir
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/32b9509df0d88c0814a0dfef2465a46ade008b28
More information about the pld-cvs-commit
mailing list