[PATCH, v3] Potential solution to librt issue.
Paolo Bonzini
bonzini@gnu.org
Thu Jul 24 13:58:00 GMT 2008
> What does this imply for your idea? I understand, correct me if I'm
> wrong, that not-exporting the symbol, arranging for the call to be
> inside an header, would make the issue easier to solve. But then, what
> would happen if the user code actually uses now? Would have to be linked
> on a case-by-case basic to libpthread?
Yes, but we could arrange it so that the libpthread linking occurs
automagically. Note that adding -lpthread is also automatic when you
add -lrt; so Chris' patch is only breaking -static, whereas in the
common case it only affects performance.
Paolo
More information about the Libstdc++
mailing list