diff options
author | Greg Hudson <ghudson@mit.edu> | 2012-12-11 14:36:06 -0500 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2012-12-12 02:08:45 -0500 |
commit | 4538146e1452e0966164119cefb0804993ce6bbb (patch) | |
tree | 71597b3f1fa7c2bec6f24e441b77b4f5c3f681a7 /doc/tools/doxybuilder_funcs.py | |
parent | 26481ee22377a46badbbf4bbdd8ae04265057205 (diff) | |
download | krb5-4538146e1452e0966164119cefb0804993ce6bbb.tar.gz krb5-4538146e1452e0966164119cefb0804993ce6bbb.tar.xz krb5-4538146e1452e0966164119cefb0804993ce6bbb.zip |
Don't finalize libraries in static build
In a build with static libraries, functions tagged with
__attribute__((destructor)) may be executed in any order, not in a
topologically sorted order as they are in shared libraries. This
could result in libcom_err functions being invoked (from another
library's finalizer) after libcom_err has been finalized, which would
(at minimum) result in using a mutex after it is destroyed. To
prevent this kind of problem, disable finalizers in the static build
regardless of whether we have compiler or linker support for them.
Reported by Mihai Serban <mihai.serban@gmail.com>.
Diffstat (limited to 'doc/tools/doxybuilder_funcs.py')
0 files changed, 0 insertions, 0 deletions