This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
You wrote:
You're right; shared libraries must be linked with the shared libraries that they use. All shared libraries that they use, which includes libc and often libgcc_s. The rule is, don't ever use "ld" to link a shared library. You should only be doing that for custom static binaries, if ever. Use "cc -shared testlib.o -lpthread -o libtestlib.so" (and maybe -Wl,-soname,libtestlib.so") and see if that helps.
Thanks, that solved it!
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |