summaryrefslogtreecommitdiff
path: root/packaging/qemu-accel-armv7l.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/qemu-accel-armv7l.spec')
-rw-r--r--packaging/qemu-accel-armv7l.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index 08bcb66..98d0dc1 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -165,7 +165,14 @@ host_python="python$(python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3)"
# Emul path inside buildroot for installation
buildroot_emul_path=%{buildroot}%{emul_path}
-binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlopen by glibc
+# Collect all shared objects from glibc and libgcc
+# excluding RTLD since it's processed in another way later
+for lib in $(rpm -ql glibc) \
+ $(rpm -ql libgcc)
+do
+ [[ "$lib" =~ .*\.so(\.[[:digit:]]+)?$ && ! "$lib" =~ /ld- ]] && binaries="$binaries $lib"
+done
+
%ifarch %ix86
LD="/%{_lib}/ld-linux.so.2"
%endif