http://bugzilla.opensuse.org/show_bug.cgi?id=1182252 http://bugzilla.opensuse.org/show_bug.cgi?id=1182252#c12 --- Comment #12 from Richard Biener <rguenther@suse.com> --- For sure in case the shared object dlopens plugins for example that use pthreads it's wrong to elide -lpthread. --as-needed is prone to breaking this kind of special links. Note that libpthread is actually a linker script: /* GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. */ OUTPUT_FORMAT(elf64-x86-64) GROUP ( /lib64/libpthread.so.0 /usr/lib64/libpthread_nonshared.a ) so it should eventually be possible to elide --as-needed here in the script in some way? Or simply add SUSE_ASNEEDED=0 in the spec file (or drop this long-standing patch). -- You are receiving this mail because: You are on the CC list for the bug.