On 11/14/2017 03:54 AM, Philip Kovacs wrote:
One concern is that -Wl,--as-needed requires greater accuracy with the ordering 
of objects and
libraries as you link.   Also, if a package uses a library indirectly, i.e. A uses C 
via B: A -> B -> C,--as-needed will peel away C and break A unless A explicitly 
mentions its need for C.

I think ld no longer links against symbols in indirect dependencies.

#include <openssl/evp.h>
int
main()
{
  return (int) &EVP_rc4;
}

/usr/bin/ld: /tmp/ccV4cmYY.o: undefined reference to symbol 'EVP_rc4@@OPENSSL_1_1_0' //usr/lib64/libcrypto.so.1.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Thanks,
Florian
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to