diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-11-27 23:34:07 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-11-27 23:34:07 +0000 |
commit | ae35d725cf586347b2adb1a6fe4216e70fce16cf (patch) | |
tree | 9fcdb86297695c3324e386e483e85db53133b412 /extra/Configs | |
parent | 44c91e654102116f99f80635c483db49126730e8 (diff) |
Make support for global constructors and global destructors be
configurable, so people who do not need or want ctor/dtor support
can disable it and make their binaries a little bit smaller.
-Erik
Diffstat (limited to 'extra/Configs')
-rw-r--r-- | extra/Configs/Config.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 089c1b40b..95c5ba7c2 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -60,6 +60,23 @@ config LDSO_LDD_SUPPORT application to function. Disabling this option will makes uClibc's shared library loader a little bit smaller. Most people will answer Y. +config UCLIBC_CTOR_DTOR + bool "Support global constructors and destructos" + default y + help + If you wish to build uClibc with support for global constructor + (ctor) and global destructor (dtor) support, then answer Y here. + When ctor/dtor support is enabled, binaries linked with uClibc must + also be linked with crtbegin.o and crtend.o which are provided by gcc + (the "*startfile:" and "*endfile:" settings in your gcc specs file + may need to be adjusted to include these files). This support will + also add a small amount of additional size to each binary compiled vs + uClibc. If you will be using uClibc with C++, or if you need the gcc + __attribute__((constructor)) and __attribute__((destructor)) to work, + then you definately want to answer Y here. If you don't need ctors + or dtors and want your binaries to be as small as possible, then + answer N. + config UCLIBC_HAS_THREADS bool "POSIX Threading Support" default y |