usefulness of UCLIBC_CTOR_DTOR ?

John Spencer maillist-uclibc at barfooze.de
Fri Aug 12 15:34:49 UTC 2011


when compiling without this option, the crucial files ctri.o and crtn.o 
don't get built.
the option in menuconfig is called "Support global constructors and 
destructors", at the top of "General Library Settings".

when reading, i always had the fealing it is regarding C++ ctors/dtors, 
so i disabled it, and wondered why the build failed (in that i couldn't 
produce a working binary later on)

also, the help text of that option doesn't quite make it clear that it 
will have that effect.

overall this looks like a pretty useless and confusing option, which 
imho should get removed.
even if there's a way to build a binary without those 2 object files, 
which i'm not aware of (please point it out if you know how), it doesn't 
cost nothing except of 1200 bytes harddisk storage to still build them.

-- J.S.


More information about the uClibc mailing list