Re: RFC: -Wl,--as-needed by default

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux