Config.in.common 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. menu "General Library Settings"
  6. config HAVE_NO_PIC
  7. bool
  8. default n
  9. config DOPIC
  10. bool "Generate only Position Independent Code (PIC)"
  11. default y
  12. depends on !HAVE_NO_PIC
  13. help
  14. If you wish to build all of uClibc as PIC objects, then answer Y here.
  15. If you are unsure, then you should answer N.
  16. config ARCH_HAS_NO_SHARED
  17. bool
  18. default n
  19. config ARCH_HAS_NO_LDSO
  20. bool
  21. select ARCH_HAS_NO_SHARED
  22. default n
  23. config HAVE_SHARED
  24. bool "Enable support for shared libraries"
  25. depends on !ARCH_HAS_NO_SHARED
  26. default y
  27. help
  28. If you wish to build uClibc with support for shared libraries then
  29. answer Y here. If you only want to build uClibc as a static library,
  30. then answer N.
  31. config FORCE_SHAREABLE_TEXT_SEGMENTS
  32. bool "Only load shared libraries which can share their text segment"
  33. depends on HAVE_SHARED
  34. default n
  35. help
  36. If you answer Y here, the uClibc native shared library loader will
  37. only load shared libraries, which do not need to modify any
  38. non-writable segments. These libraries haven't set the DT_TEXTREL
  39. tag in the dynamic section (==> objdump).
  40. All your libraries must be compiled with -fPIC or -fpic, and all
  41. assembler function must be written as position independent code (PIC).
  42. Enabling this option will make uClibc's shared library loader a
  43. little bit smaller and guarantee that no memory will be wasted by
  44. badly coded shared libraries.
  45. config LDSO_LDD_SUPPORT
  46. bool "Native 'ldd' support"
  47. depends on HAVE_SHARED
  48. default y
  49. help
  50. Enable this to enable all the code needed to support traditional ldd,
  51. which executes the shared library loader to resolve all dependencies
  52. and then provide a list of shared libraries that are required for an
  53. application to function. Disabling this option will makes uClibc's
  54. shared library loader a little bit smaller.
  55. Most people will answer Y.
  56. config LDSO_CACHE_SUPPORT
  57. bool "Enable library loader cache (ld.so.conf)"
  58. depends on HAVE_SHARED
  59. default y
  60. help
  61. Enable this to make use of /etc/ld.so.conf, the shared library loader
  62. cache configuration file to support for non-standard library paths.
  63. After updating this file, it is necessary to run 'ldconfig' to update
  64. the /etc/ld.so.cache shared library loader cache file.
  65. config LDSO_PRELOAD_FILE_SUPPORT
  66. bool "Enable library loader preload file (ld.so.preload)"
  67. depends on HAVE_SHARED
  68. default n
  69. help
  70. Enable this to make use of /etc/ld.so.preload. This file contains a
  71. whitespace separated list of shared libraries to be loaded before
  72. the program.
  73. config LDSO_BASE_FILENAME
  74. string "Shared library loader naming prefix"
  75. depends on HAVE_SHARED && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  76. default "ld.so"
  77. help
  78. If you wish to support both uClibc and glibc on the same system, it
  79. is necessary to set this to something other than "ld.so" to avoid
  80. conflicts with glibc, which also uses "ld.so". This prevents both
  81. libraries from using the same /etc/ld.so.* files. If you wish to
  82. support both uClibc and glibc on the same system then you should set
  83. this to "ld-uClibc.so".
  84. Most people will leave this set to the default of "ld.so".
  85. WARNING: Changing the default prefix could cause problems with
  86. binutils' ld !
  87. config UCLIBC_STATIC_LDCONFIG
  88. bool "Link ldconfig statically"
  89. depends on HAVE_SHARED
  90. default y
  91. help
  92. Enable this option to statically link the ldconfig binary.
  93. Making ldconfig static can be beneficial if you have a library
  94. problem and need to use ldconfig to recover. Sometimes, it is
  95. preferable to instead keep the size of the system down, in which
  96. case you should disable this option.
  97. config LDSO_RUNPATH
  98. bool "Enable ELF RUNPATH tag support"
  99. depends on HAVE_SHARED
  100. default y
  101. help
  102. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  103. which extend the library search paths. They are really only useful
  104. if a package installs libraries in non standard locations and
  105. ld.so.conf support is disabled.
  106. Usage of RUNPATH tags is not too common, so disabling this feature
  107. should be safe for most people.
  108. config UCLIBC_CTOR_DTOR
  109. bool "Support global constructors and destructors"
  110. default y
  111. help
  112. If you wish to build uClibc with support for global constructor
  113. (ctor) and global destructor (dtor) support, then answer Y here.
  114. When ctor/dtor support is enabled, binaries linked with uClibc must
  115. also be linked with crtbegin.o and crtend.o which are provided by gcc
  116. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  117. may need to be adjusted to include these files). This support will
  118. also add a small amount of additional size to each binary compiled vs
  119. uClibc. If you will be using uClibc with C++, or if you need the gcc
  120. __attribute__((constructor)) and __attribute__((destructor)) to work,
  121. then you definitely want to answer Y here. If you don't need ctors
  122. or dtors and want your binaries to be as small as possible, then
  123. answer N.
  124. config LDSO_GNU_HASH_SUPPORT
  125. bool "Enable GNU hash style support"
  126. depends on HAVE_SHARED
  127. default n
  128. help
  129. Newest binutils support a new hash style named GNU-hash. The dynamic
  130. linker will use the new GNU-hash section (.gnu.hash) for symbol lookup
  131. if present into the ELF binaries, otherwise it will use the old SysV
  132. hash style (.hash). This ensures that it is completely backward
  133. compatible.
  134. Further, being the hash table implementation self-contained into each
  135. executable and shared libraries, objects with mixed hash style can
  136. peacefully coexist in the same process.
  137. If you want to use this new feature, answer Y
  138. config HAS_NO_THREADS
  139. bool
  140. default n
  141. config UCLIBC_HAS_THREADS
  142. bool "POSIX Threading support"
  143. depends on !HAS_NO_THREADS
  144. default y
  145. # linuxthreads and linuxthreads.old need nanosleep()
  146. select UCLIBC_HAS_REALTIME
  147. help
  148. If you want to compile uClibc with pthread support, then answer Y.
  149. This will increase the size of uClibc by adding a bunch of locking
  150. to critical data structures, and adding extra code to ensure that
  151. functions are properly reentrant.
  152. If your applications require pthreads, answer Y.
  153. config UCLIBC_HAS_TLS
  154. bool "Thread-Local Storage"
  155. depends on UCLIBC_HAS_THREADS && !LINUXTHREADS_OLD
  156. default n
  157. help
  158. If you want to enable TLS support then answer Y.
  159. This is fast an efficient way to store per-thread local data
  160. which is not on stack. It needs __thread support enabled in
  161. gcc.
  162. config PTHREADS_DEBUG_SUPPORT
  163. bool "Build pthreads debugging support"
  164. default n
  165. depends on UCLIBC_HAS_THREADS
  166. help
  167. Say Y here if you wish to be able to debug applications that use
  168. uClibc's pthreads library. By enabling this option, a library
  169. named libthread_db will be built. This library will be dlopen()'d
  170. by gdb and will allow gdb to debug the threads in your application.
  171. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  172. you must compile gdb with uClibc in order for pthread debugging to
  173. work properly.
  174. If you are doing development and want to debug applications using
  175. uClibc's pthread library, answer Y. Otherwise, answer N.
  176. config LINUXTHREADS_OLD
  177. bool "Use the older (stable) version of linuxthreads"
  178. default y
  179. depends on UCLIBC_HAS_THREADS && !UCLIBC_HAS_THREADS_NATIVE
  180. help
  181. There are two versions of linuxthreads. The older (stable) version
  182. has been in uClibc for quite a long time but hasn't seen too many
  183. updates other than bugfixes.
  184. The new version has not been tested much, and lacks ports for arches
  185. which glibc does not support (like bfin/frv/etc...), but is based on
  186. the latest code from glibc, so it may be the only choice for the
  187. newer ports (like alpha/amd64/64bit arches and hppa).
  188. config UCLIBC_HAS_THREADS_NATIVE
  189. bool "Native POSIX Threading (NPTL) Support"
  190. depends on UCLIBC_HAS_THREADS
  191. default n
  192. select UCLIBC_HAS_TLS
  193. help
  194. If you want to compile uClibc with NPTL support, then answer Y.
  195. IMPORTANT NOTE! NPTL requires a Linux 2.6 kernel, binutils
  196. at least version 2.16 and GCC with at least version 4.1.0. NPTL
  197. will not work with older versions of any above sources. If you
  198. ignore any of these guidelines, you do so at your own risk. Do
  199. not ask for help on any of the development mailing lists.
  200. !!!! WARNING !!!! BIG FAT WARNING !!!! REALLY BIG FAT WARNING !!!!
  201. This is experimental code and at times it may not even build and
  202. even if it does it might decide to do random damage. This code is
  203. potentially hazardous to your health and sanity. It will remain
  204. that way until further notice at which point this notice will
  205. disappear. Thank you for your support and for not smoking.
  206. config LINUXTHREADS_NEW
  207. def_bool y
  208. depends on UCLIBC_HAS_THREADS && !LINUXTHREADS_OLD && !UCLIBC_HAS_THREADS_NATIVE
  209. config UCLIBC_HAS_SYSLOG
  210. bool "Syslog support"
  211. default y
  212. depends on UCLIBC_HAS_NETWORK_SUPPORT
  213. select UCLIBC_HAS_SOCKET
  214. help
  215. Support sending messages to the system logger.
  216. This requires socket-support.
  217. config UCLIBC_HAS_LFS
  218. bool "Large File Support"
  219. default y
  220. help
  221. If you wish to build uClibc with support for accessing large files
  222. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  223. if you are using an older Linux kernel (2.0.x) that lacks large file
  224. support. Enabling this option will increase the size of uClibc.
  225. choice
  226. prompt "Malloc Implementation"
  227. default MALLOC if ! ARCH_USE_MMU
  228. default MALLOC_STANDARD if ARCH_USE_MMU
  229. config MALLOC
  230. bool "malloc"
  231. help
  232. "malloc" use mmap for all allocations and so works very well on
  233. MMU-less systems that do not support the brk() system call. It is
  234. pretty smart about reusing already allocated memory, and minimizing
  235. memory wastage.
  236. This is the default for uClinux MMU-less systems.
  237. config MALLOC_SIMPLE
  238. bool "malloc-simple"
  239. help
  240. "malloc-simple" is trivially simple and slow as molasses. It
  241. was written from scratch for uClibc, and is the simplest possible
  242. (and therefore smallest) malloc implementation.
  243. This uses only the mmap() system call to allocate and free memory,
  244. and does not use the brk() system call at all, making it a fine
  245. choice for MMU-less systems with very limited memory. It's 100%
  246. standards compliant, thread safe, very small, and releases freed
  247. memory back to the OS immediately rather than keeping it in the
  248. process's heap for reallocation. It is also VERY SLOW.
  249. config MALLOC_STANDARD
  250. bool "malloc-standard"
  251. depends on ARCH_USE_MMU
  252. help
  253. "malloc-standard" is derived from the public domain dlmalloc
  254. implementation by Doug Lea. It is quite fast, and is pretty smart
  255. about reusing already allocated memory, and minimizing memory
  256. wastage. This uses brk() for small allocations, while using mmap()
  257. for larger allocations. This is the default malloc implementation
  258. for uClibc.
  259. If unsure, answer "malloc-standard".
  260. endchoice
  261. config MALLOC_GLIBC_COMPAT
  262. bool "Malloc returns live pointer for malloc(0)"
  263. default n
  264. help
  265. The behavior of malloc(0) is listed as implementation-defined by
  266. SuSv3. Glibc returns a valid pointer to something, while uClibc
  267. normally returns NULL. I personally feel glibc's behavior is
  268. not particularly safe, and allows buggy applications to hide very
  269. serious problems.
  270. When this option is enabled, uClibc will act just like glibc, and
  271. return a live pointer when someone calls malloc(0). This pointer
  272. provides a malloc'ed area with a size of 1 byte. This feature is
  273. mostly useful when dealing with applications using autoconf's broken
  274. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  275. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  276. behavior). Most people can safely answer N.
  277. config UCLIBC_DYNAMIC_ATEXIT
  278. bool "Dynamic atexit() Support"
  279. default y
  280. help
  281. When this option is enabled, uClibc will support an infinite number,
  282. of atexit() and on_exit() functions, limited only by your available
  283. memory. This can be important when uClibc is used with C++, since
  284. global destructors are implemented via atexit(), and it is quite
  285. possible to exceed the default number when this option is disabled.
  286. Enabling this option adds a few bytes, and more significantly makes
  287. atexit and on_exit depend on malloc, which can be bad when compiling
  288. static executables.
  289. Unless you use uClibc with C++, you should probably answer N.
  290. config COMPAT_ATEXIT
  291. bool "Old (visible) atexit Support"
  292. default n
  293. help
  294. Enable this option if you want to update from 0.9.28 to git/0.9.29,
  295. else you will be missing atexit() until you rebuild all apps.
  296. config UCLIBC_SUSV3_LEGACY
  297. bool "Enable SuSv3 LEGACY functions"
  298. default n
  299. #vfork,
  300. # h_errno
  301. # gethostbyaddr
  302. # gethostbyname
  303. help
  304. Enable this option if you want to have SuSv3 LEGACY functions
  305. in the library, else they are replaced by SuSv3 proposed macros.
  306. Currently applies to:
  307. bcmp, bcopy, bzero, index, rindex, ftime,
  308. bsd_signal, (ecvt), (fcvt), gcvt, (getcontext),
  309. (getwd), (makecontext),
  310. mktemp, (pthread_attr_getstackaddr), (pthread_attr_setstackaddr),
  311. scalb, (setcontext), (swapcontext), ualarm, usleep,
  312. wcswcs.
  313. WARNING! ABI incompatibility.
  314. config UCLIBC_SUSV3_LEGACY_MACROS
  315. bool "Enable SuSv3 LEGACY macros"
  316. default n
  317. help
  318. Enable this option if you want to have SuSv3 LEGACY macros.
  319. Currently applies to bcopy/bzero/bcmp/index/rindex et al.
  320. WARNING! ABI incompatibility.
  321. config UCLIBC_SUSV4_LEGACY
  322. bool "Enable SuSv4 LEGACY or obsolescent functions"
  323. default n
  324. help
  325. Enable this option if you want to have SuSv4 LEGACY functions
  326. and macros in the library.
  327. Currently applies to:
  328. - XSI functions:
  329. _longjmp, _setjmp, _tolower, _toupper, ftw, getitimer,
  330. gettimeofday, isascii, pthread_getconcurrency,
  331. pthread_setconcurrency, setitimer, setpgrp, sighold,
  332. sigignore, sigpause, sigrelse, sigset, siginterrupt,
  333. tempnam, toascii, ulimit.
  334. - Base functions:
  335. asctime, asctime_r, ctime, ctime_r, gets, rand_r,
  336. tmpnam, utime.
  337. WARNING! ABI incompatibility.
  338. config UCLIBC_HAS_STUBS
  339. bool "Provide stubs for unavailable functionality"
  340. default n
  341. help
  342. With this option uClibc provides non-functional stubs for
  343. functions which are impossible to implement on the target
  344. architecture. Otherwise, such functions are simply omitted.
  345. As of 2008-07, this option makes uClibc provide fork() stub
  346. on NOMMU targets. It always sets errno to ENOSYS and returns -1.
  347. This may be useful if you port a lot of software and cannot
  348. audit all of it and replace or disable fork() usage.
  349. With this option, a program which uses fork() will build
  350. successfully. Of course, it may be useless if fork()
  351. is essential for its operation.
  352. config UCLIBC_HAS_SHADOW
  353. bool "Shadow Password Support"
  354. default y
  355. help
  356. Answer N if you do not need shadow password support.
  357. Most people will answer Y.
  358. config UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  359. bool "Support for program_invocation_name"
  360. default n
  361. help
  362. Support for the GNU-specific program_invocation_name and
  363. program_invocation_short_name strings. Some GNU packages
  364. (like tar and coreutils) utilize these for extra useful
  365. output, but in general are not required.
  366. At startup, these external strings are automatically set
  367. up based on the value of ARGV[0].
  368. If unsure, just answer N.
  369. config UCLIBC_HAS___PROGNAME
  370. bool "Support for __progname"
  371. default y
  372. depends on UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  373. help
  374. Some packages (like openssh) like to peek into internal libc
  375. symbols to make their output a bit more user friendly.
  376. At startup, __progname is automatically set up based on the
  377. value of ARGV[0].
  378. If unsure, just answer N.
  379. config UCLIBC_HAS_PTY
  380. bool "Support for pseudo-terminals"
  381. default y
  382. help
  383. This enables support for pseudo-terminals (see man 4 pts
  384. and man 7 pty).
  385. If unsure, just answer Y.
  386. config ASSUME_DEVPTS
  387. bool "Assume that /dev/pts is a devpts or devfs file system"
  388. default y
  389. depends on UCLIBC_HAS_PTY
  390. help
  391. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  392. these filesystems automatically manage permissions on the /dev/pts
  393. devices. You may need to mount your devpts or devfs filesystem on
  394. /dev/pts for this to work.
  395. Most people should answer Y.
  396. config UNIX98PTY_ONLY
  397. bool "Support only Unix 98 PTYs"
  398. default y
  399. depends on UCLIBC_HAS_PTY
  400. help
  401. If you want to support only Unix 98 PTYs enable this. Some older
  402. applications may need this disabled and will thus use legacy BSD
  403. style PTY handling which is more complex and also bigger than
  404. Unix 98 PTY handling.
  405. For most current programs, you can generally answer Y.
  406. if UNIX98PTY_ONLY
  407. config UCLIBC_HAS_GETPT
  408. bool "Support getpt() (glibc-compat)"
  409. default n
  410. depends on UCLIBC_HAS_PTY
  411. help
  412. Some packages may need getpt().
  413. All of those are non-standard and can be considered
  414. GNU/libc compatibility.
  415. Either use posix_openpt() or just open /dev/ptmx yourself.
  416. If unsure, just say N.
  417. endif
  418. if !UNIX98PTY_ONLY
  419. # Have to use __libc_ptyname{1,2}[] and related bloat
  420. config UCLIBC_HAS_GETPT
  421. def_bool y
  422. endif
  423. config UCLIBC_HAS_TM_EXTENSIONS
  424. bool "Support 'struct tm' timezone extension fields"
  425. default y
  426. help
  427. Enabling this option adds fields to 'struct tm' in time.h for
  428. tracking the number of seconds east of UTC, and an abbreviation for
  429. the current timezone. These fields are not specified by the SuSv3
  430. standard, but they are commonly used in both GNU and BSD application
  431. code.
  432. To strictly follow the SuSv3 standard, leave this disabled.
  433. Most people will probably want to answer Y.
  434. config UCLIBC_HAS_TZ_CACHING
  435. bool "Enable caching of the last valid timezone 'TZ' string"
  436. default y
  437. help
  438. Answer Y to enable caching of the last valid 'TZ' string describing
  439. the timezone setting. This allows a quick string compare to avoid
  440. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  441. Most people will answer Y.
  442. config UCLIBC_HAS_TZ_FILE
  443. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  444. default y
  445. help
  446. Answer Y to enable the setting of a default timezone for uClibc.
  447. Ordinarily, uClibc gets the timezone information exclusively from the
  448. 'TZ' environment variable. In particular, there is no support for
  449. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  450. With this option enabled, uClibc will use the value stored in the
  451. file '/etc/TZ' (default path) to obtain timezone information if the
  452. 'TZ' environment variable is missing or has an invalid value. The
  453. file consists of a single line (newline required) of text describing
  454. the timezone in the format specified for the TZ environment variable.
  455. Doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  456. See
  457. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  458. for details on valid settings of 'TZ'.
  459. Most people will answer Y.
  460. config UCLIBC_HAS_TZ_FILE_READ_MANY
  461. bool "Repeatedly read the '/etc/TZ' file"
  462. depends on UCLIBC_HAS_TZ_FILE
  463. default y
  464. help
  465. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  466. a valid value has been read. This incurs the overhead of an
  467. open/read/close for each tzset() call (explicit or implied). However,
  468. setting this will allow applications to update their timezone
  469. information if the contents of the file change.
  470. Most people will answer Y.
  471. config UCLIBC_TZ_FILE_PATH
  472. string "Path to the 'TZ' file for setting the global timezone"
  473. depends on UCLIBC_HAS_TZ_FILE
  474. default "/etc/TZ"
  475. help
  476. This is the path to the 'TZ' file.
  477. Most people will use the default of '/etc/TZ'.
  478. endmenu
  479. menu "Advanced Library Settings"
  480. config UCLIBC_PWD_BUFFER_SIZE
  481. int "Buffer size for getpwnam() and friends"
  482. default 256
  483. range 12 1024
  484. help
  485. This sets the value of the buffer size for getpwnam() and friends.
  486. By default, this is 256. (For reference, glibc uses 1024).
  487. The value can be found using sysconf() with the _SC_GETPW_R_SIZE_MAX
  488. parameter.
  489. config UCLIBC_GRP_BUFFER_SIZE
  490. int "Buffer size for getgrnam() and friends"
  491. default 256
  492. range 12 1024
  493. help
  494. This sets the value of the buffer size for getgrnam() and friends.
  495. By default, this is 256. (For reference, glibc uses 1024).
  496. The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
  497. parameter.
  498. comment "Support various families of functions"
  499. config UCLIBC_LINUX_MODULE_24
  500. bool "Linux kernel module functions"
  501. default !(TARGET_bfin)
  502. help
  503. create_module, query_module
  504. are used in linux (prior to 2.6) for loadable kernel modules.
  505. Say N if you do not use kernel modules, or you only support
  506. Linux 2.6+.
  507. config UCLIBC_LINUX_SPECIFIC
  508. bool "Linux specific functions"
  509. default y
  510. help
  511. capget(), capset(), fstatfs(), inotify_*(), ioperm(), iopl(),
  512. madvise(), modify_ldt(), personality(), prctl()/arch_prctl(),
  513. ppoll(), readahead(), reboot(), remap_file_pages(),
  514. sched_getaffinity(), sched_setaffinity(), sendfile(),
  515. setfsgid(), setfsuid(), setresuid(),
  516. splice(), vmsplice(), tee(), signalfd(), swapoff(), swapon(),
  517. sync_file_range(), sysctl(), sysinfo(), vhangup()
  518. config UCLIBC_HAS_GNU_ERROR
  519. bool "Support GNU extensions for error-reporting"
  520. default y
  521. help
  522. Support for the GNU-specific error(), error_at_line(),
  523. void (* error_print_progname)(), error_message_count
  524. functions and variables. Some GNU packages
  525. utilize these for extra useful output, but in general
  526. are not required.
  527. If unsure, just answer N.
  528. config UCLIBC_BSD_SPECIFIC
  529. bool "BSD specific functions"
  530. default y
  531. help
  532. mincore(), getdomainname(), setdomainname()
  533. If unsure, say N.
  534. config UCLIBC_HAS_BSD_ERR
  535. bool "BSD err functions"
  536. default y
  537. help
  538. These functions are non-standard BSD extensions.
  539. err(), errx(), warn(), warnx(), verr(), verrx(), vwarn(), vwarnx()
  540. If unsure, say N.
  541. config UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
  542. bool "BSD obsolete signal functions"
  543. default n
  544. help
  545. These functions are provided as a compatibility interface for
  546. programs that make use of the historical System V signal API.
  547. This API is obsolete:
  548. new applications should use the POSIX signal API (sigaction(2),
  549. sigprocmask(2), etc.).
  550. Affected functions:
  551. sigset(), sighold(), sigrelse(), sigignore()
  552. If unsure, say N.
  553. config UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL
  554. bool "SYSV obsolete signal functions"
  555. default n
  556. help
  557. Use of sysv_signal() should be avoided; use sigaction(2) instead.
  558. If unsure, say N.
  559. config UCLIBC_NTP_LEGACY
  560. bool "ntp_*() aliases"
  561. default n
  562. help
  563. Provide legacy aliases for ntp functions:
  564. ntp_adjtime(), ntp_gettime()
  565. It is safe to say N here.
  566. config UCLIBC_SV4_DEPRECATED
  567. bool "Enable SVr4 deprecated functions"
  568. default n
  569. help
  570. These functions are DEPRECATED in System V release 4.
  571. Say N unless you desparately need one of the functions below:
  572. ustat() [use statfs(2) in your code instead]
  573. config UCLIBC_HAS_REALTIME
  574. bool "Realtime-related family of SUSv functions"
  575. default y
  576. help
  577. These functions are part of the Timers option and need not
  578. be available on all implementations.
  579. Includes AIO, message-queue, scheduler, semaphore functions:
  580. aio.h
  581. mqueue.h
  582. sched.h
  583. semaphore.h
  584. aio_cancel()
  585. aio_error()
  586. aio_fsync()
  587. aio_read()
  588. lio_listio()
  589. aio_return()
  590. aio_suspend()
  591. aio_write()
  592. clock_getres(), clock_gettime(), clock_settime()
  593. fdatasync()
  594. mlockall(), munlockall()
  595. mlock(), munlock()
  596. mq_close()
  597. mq_getattr()
  598. mq_notify()
  599. mq_open()
  600. mq_receive()
  601. mq_send()
  602. mq_setattr()
  603. mq_unlink()
  604. nanosleep()
  605. sched_getparam()
  606. sched_get_priority_max(), sched_get_priority_min()
  607. sched_getscheduler()
  608. sched_rr_get_interval()
  609. sched_setparam()
  610. sched_setscheduler()
  611. sem_close()
  612. sem_destroy()
  613. sem_getvalue()
  614. sem_init()
  615. sem_open()
  616. sem_post()
  617. sem_trywait(), sem_wait()
  618. sem_unlink()
  619. sigqueue()
  620. sigtimedwait(), sigwaitinfo()
  621. timer_create()
  622. timer_delete()
  623. timer_getoverrun(), timer_gettime(), timer_settime()
  624. config UCLIBC_HAS_ADVANCED_REALTIME
  625. bool "Advanced realtime-related family of SUSv functions"
  626. default y
  627. depends on UCLIBC_HAS_REALTIME
  628. help
  629. These functions are part of the Timers option and need not
  630. be available on all implementations.
  631. clock_getcpuclockid()
  632. clock_nanosleep()
  633. mq_timedreceive()
  634. mq_timedsend()
  635. posix_fadvise()
  636. posix_fallocate()
  637. posix_madvise()
  638. posix_memalign()
  639. posix_mem_offset()
  640. posix_spawnattr_destroy(), posix_spawnattr_init()
  641. posix_spawnattr_getflags(), posix_spawnattr_setflags()
  642. posix_spawnattr_getpgroup(), posix_spawnattr_setpgroup()
  643. posix_spawnattr_getschedparam(), posix_spawnattr_setschedparam()
  644. posix_spawnattr_getschedpolicy(), posix_spawnattr_setschedpolicy()
  645. posix_spawnattr_getsigdefault(), posix_spawnattr_setsigdefault()
  646. posix_spawnattr_getsigmask(), posix_spawnattr_setsigmask()
  647. posix_spawn_file_actions_addclose()
  648. posix_spawn_file_actions_adddup2()
  649. posix_spawn_file_actions_addopen()
  650. posix_spawn_file_actions_destroy()
  651. posix_spawn_file_actions_init()
  652. posix_spawn()
  653. posix_spawnp()
  654. posix_typed_mem_get_info()
  655. pthread_mutex_timedlock()
  656. sem_timedwait()
  657. #config UCLIBC_HAS_TERMIOS
  658. # bool "termios functions"
  659. # default y
  660. # help
  661. # Get and set terminal attributes, line control, get and set baud
  662. # rate.
  663. # termios(), tcgetattr(), tcsetattr(), tcsendbreak(), tcdrain(),
  664. # tcflush(), tcflow(), cfmakeraw(), cfgetospeed(), cfgetispeed(),
  665. # cfsetispeed(), cfsetospeed(), cfsetspeed()
  666. #
  667. # If unsure, say Y.
  668. config UCLIBC_HAS_EPOLL
  669. bool "epoll"
  670. default y
  671. help
  672. epoll_create(), epoll_ctl(), epoll_wait() functions.
  673. config UCLIBC_HAS_XATTR
  674. bool "Extended Attributes"
  675. default y
  676. help
  677. Extended Attributes support.
  678. setxattr()
  679. lsetxattr()
  680. fsetxattr()
  681. getxattr()
  682. lgetxattr()
  683. fgetxattr()
  684. listxattr()
  685. llistxattr()
  686. flistxattr()
  687. removexattr()
  688. lremovexattr()
  689. fremovexattr()
  690. Say N unless you need support for extended attributes and the
  691. filesystems do actually support them.
  692. config UCLIBC_HAS_PROFILING
  693. bool "Profiling support"
  694. default y
  695. help
  696. gcc's -finstrument-functions needs these.
  697. Most people can safely answer N.
  698. config UCLIBC_HAS_CRYPT_IMPL
  699. bool "libcrypt support"
  700. default y
  701. help
  702. libcrypt contains crypt(), setkey() and encrypt()
  703. config UCLIBC_HAS_CRYPT_STUB
  704. bool "libcrypt stubs"
  705. default y
  706. depends on !UCLIBC_HAS_CRYPT_IMPL
  707. help
  708. Standards mandate that crypt(3) provides a stub if it is unavailable.
  709. If you enable this option then stubs for
  710. crypt(), setkey() and encrypt()
  711. will be provided in a small libcrypt.
  712. config UCLIBC_HAS_CRYPT
  713. def_bool y
  714. depends on UCLIBC_HAS_CRYPT_IMPL || UCLIBC_HAS_CRYPT_STUB
  715. endmenu
  716. menuconfig UCLIBC_HAS_NETWORK_SUPPORT
  717. bool "Networking Support"
  718. default y
  719. help
  720. Say N here if you do not need network support.
  721. if UCLIBC_HAS_NETWORK_SUPPORT
  722. config UCLIBC_HAS_SOCKET
  723. bool "Socket support"
  724. default y
  725. help
  726. If you want to include support for sockets then answer Y.
  727. config UCLIBC_HAS_IPV4
  728. bool "IP version 4 support"
  729. default y
  730. select UCLIBC_HAS_SOCKET
  731. help
  732. If you want to include support for the Internet Protocol
  733. (IP version 4) then answer Y.
  734. Most people will say Y.
  735. config UCLIBC_HAS_IPV6
  736. bool "IP version 6 support"
  737. default n
  738. select UCLIBC_HAS_SOCKET
  739. help
  740. If you want to include support for the next version of the Internet
  741. Protocol (IP version 6) then answer Y.
  742. Most people should answer N.
  743. config UCLIBC_HAS_RPC
  744. bool "Remote Procedure Call (RPC) support"
  745. default n
  746. # RPC+socket-ipvX doesn't currently work.
  747. depends on UCLIBC_HAS_IPV4 || UCLIBC_HAS_IPV6
  748. help
  749. If you want to include RPC support, enable this. RPC is rarely used
  750. for anything except for the NFS filesystem. Unless you plan to use
  751. NFS, you can probably leave this set to N and save some space.
  752. If you need to use NFS then you should answer Y.
  753. config UCLIBC_HAS_FULL_RPC
  754. bool "Full RPC support"
  755. depends on UCLIBC_HAS_RPC
  756. default y if !HAVE_SHARED
  757. help
  758. Normally we enable just enough RPC support for things like rshd and
  759. nfs mounts to work. If you find you need the rest of the RPC stuff,
  760. then enable this option. Most people can safely answer N.
  761. config UCLIBC_HAS_REENTRANT_RPC
  762. bool "Reentrant RPC support"
  763. depends on UCLIBC_HAS_RPC
  764. default y if !HAVE_SHARED
  765. help
  766. Most packages utilize the normal (non-reentrant) RPC functions, but
  767. some (like exportfs from nfs-utils) need these reentrant versions.
  768. Most people can safely answer N.
  769. config UCLIBC_USE_NETLINK
  770. bool "Use netlink to query interfaces"
  771. default n
  772. depends on UCLIBC_HAS_SOCKET
  773. help
  774. In newer versions of Linux (2.4.17+), support was added for querying
  775. network device information via netlink rather than the old style
  776. ioctl's. Most of the time, the older ioctl style is sufficient (and
  777. it is smaller than netlink), but if you find that not all of your
  778. devices are being returned by the if_nameindex() function, you will
  779. have to use the netlink implementation.
  780. Most people can safely answer N.
  781. config UCLIBC_SUPPORT_AI_ADDRCONFIG
  782. bool "Support the AI_ADDRCONFIG flag"
  783. depends on UCLIBC_USE_NETLINK
  784. default n
  785. help
  786. The implementation of AI_ADDRCONFIG is aligned with the glibc
  787. implementation using netlink to query interfaces to find both
  788. ipv4 and ipv6 support. This is only needed if an application uses
  789. the AI_ADDRCONFIG flag.
  790. Most people can safely answer N.
  791. config UCLIBC_HAS_BSD_RES_CLOSE
  792. bool "Support res_close() (bsd-compat)"
  793. default n
  794. help
  795. Answer Y if you desperately want to support BSD compatibility in
  796. the network code.
  797. Most people will say N.
  798. config UCLIBC_HAS_COMPAT_RES_STATE
  799. bool "Use compatible but bloated _res"
  800. default y
  801. help
  802. Answer Y if you build network utilities and they muck with resolver
  803. internals a lot (_res global structure). uclibc does not use most
  804. of _res.XXX fields, and with this option OFF they won't even exist.
  805. Which will make e.g. dig build fail.
  806. Answering N saves around 400 bytes in bss.
  807. config UCLIBC_HAS_EXTRA_COMPAT_RES_STATE
  808. bool "Use extra compatible but extra bloated _res"
  809. default n
  810. help
  811. Answer Y if selecting UCLIBC_HAS_COMPAT_RES_STATE is not enough.
  812. As far as I can say, this should never be needed.
  813. endif
  814. menu "String and Stdio Support"
  815. config UCLIBC_HAS_STRING_GENERIC_OPT
  816. bool "Use faster (but larger) generic string functions"
  817. default y
  818. help
  819. Answer Y to use the (tweaked) glibc generic string functions.
  820. In general, they are faster (but 3-5K larger) than the base
  821. uClibc string functions which are optimized solely for size.
  822. Many people will answer Y.
  823. config UCLIBC_HAS_STRING_ARCH_OPT
  824. bool "Use arch-specific assembly string functions (where available)"
  825. default y
  826. help
  827. Answer Y to use any archtecture-specific assembly language string
  828. functions available for this target plaform.
  829. Note that assembly implementations are not available for all string
  830. functions, so some generic (written in C) string functions may
  831. still be used.
  832. These are small and fast, the only reason _not_ to say Y here is
  833. for debugging purposes.
  834. config UCLIBC_HAS_CTYPE_TABLES
  835. bool "Use Table Versions Of 'ctype.h' Functions."
  836. default y
  837. help
  838. Answer Y to use table versions of the 'ctype.h' functions.
  839. While the non-table versions are often smaller when building
  840. statically linked apps, they work only in stub locale mode.
  841. Most people will answer Y.
  842. config UCLIBC_HAS_CTYPE_SIGNED
  843. bool "Support Signed Characters In 'ctype.h' Functions."
  844. depends on UCLIBC_HAS_CTYPE_TABLES
  845. default y
  846. help
  847. Answer Y to enable support for passing signed char values to
  848. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  849. these functions are only defined for unsigned char values and
  850. EOF. However, glibc allows negative signed char values as well
  851. in order to support 'broken old programs'.
  852. Most people will answer Y.
  853. choice
  854. prompt "ctype argument checking"
  855. depends on UCLIBC_HAS_CTYPE_TABLES
  856. default UCLIBC_HAS_CTYPE_UNSAFE
  857. help
  858. Please select the invalid arg behavior you want for the 'ctype'
  859. functions.
  860. The 'ctype' functions are now implemented using table lookups, with
  861. the arg being the index. This can result in incorrect memory accesses
  862. or even segfaults for args outside of the allowed range.
  863. NOTE: This only affects the 'ctype' _functions_. It does not affect
  864. the macro implementations.
  865. config UCLIBC_HAS_CTYPE_UNSAFE
  866. bool "Do not check -- unsafe"
  867. config UCLIBC_HAS_CTYPE_CHECKED
  868. bool "Detect and handle appropriately"
  869. config UCLIBC_HAS_CTYPE_ENFORCED
  870. bool "Issue a diagnostic and abort()"
  871. endchoice
  872. config UCLIBC_HAS_WCHAR
  873. bool "Wide Character Support"
  874. default n
  875. help
  876. Answer Y to enable wide character support. This will make uClibc
  877. much larger. It is also currently required for locale support.
  878. Most people will answer N.
  879. config UCLIBC_HAS_LOCALE
  880. bool "Locale Support"
  881. select UCLIBC_HAS_WCHAR
  882. select UCLIBC_HAS_CTYPE_TABLES
  883. default n
  884. help
  885. uClibc now has full ANSI/ISO C99 locale support (except for
  886. wcsftime() and collating items in regex). Be aware that enabling
  887. this option will make uClibc much larger.
  888. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  889. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  890. uClibc by around 300k. You can reduce this size by building your own
  891. custom set of locate data (see extra/locale/LOCALES for details).
  892. uClibc's locale support is still under development. For example,
  893. codesets using shift states are not currently supported. Support is
  894. planned in the next iteration of locale support.
  895. Answer Y to enable locale support. Most people will answer N.
  896. config UCLIBC_PREGENERATED_LOCALE_DATA
  897. bool "Use Pre-generated Locale Data"
  898. depends on UCLIBC_HAS_LOCALE
  899. default n
  900. help
  901. Use pre-built locale data.
  902. Note that these pregenerated locales are sensitive to your
  903. target architecture (endianess, bitcount).
  904. Saying N here is highly recommended.
  905. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  906. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  907. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  908. default n
  909. help
  910. If you would like the build process to use 'wget' to automatically
  911. download the pregenerated locale data, enable this option. Otherwise
  912. you will need to obtain the locale data yourself from:
  913. http://www.uclibc.org/downloads/uClibc-locale-*.tgz
  914. and place the uClibc-locale-*.tgz tarball in the extra/locale/
  915. directory.
  916. Go ahead and make life easy for yourself... Answer Y.
  917. config UCLIBC_HAS_XLOCALE
  918. bool "Extended Locale Support (experimental/incomplete)"
  919. depends on UCLIBC_HAS_LOCALE
  920. default n
  921. help
  922. Answer Y to enable extended locale support similar to that provided
  923. by glibc. This is primarily intended to support libstd++
  924. functionality.
  925. However, it also allows thread-specific locale selection via
  926. uselocale().
  927. Most people will answer N.
  928. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  929. bool "Support hexadecimal float notation"
  930. depends on UCLIBC_HAS_CTYPE_TABLES
  931. depends on UCLIBC_HAS_FLOATS
  932. default n
  933. help
  934. Answer Y to enable support for hexadecimal float notation in the
  935. (wchar and) char string to floating point conversion functions, as
  936. well as support for the %a and %A conversion specifiers in the
  937. *printf() and *scanf() functions.
  938. Most people will answer N.
  939. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  940. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  941. depends on UCLIBC_HAS_LOCALE
  942. depends on UCLIBC_HAS_FLOATS
  943. default n
  944. help
  945. Answer Y to enable support for glibc's \"'\" flag for allowing
  946. locale-specific digit grouping in base 10 integer conversions and
  947. appropriate floating point conversions in the *printf() and *scanf()
  948. functions.
  949. Most people will answer N.
  950. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  951. bool "Do not require digit grouping when the \"'\" flag is specified"
  952. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  953. default y
  954. help
  955. Answer Y to make digit grouping optional when the \"'\" flag is
  956. specified.
  957. This is the standard glibc behavior. If the initial string of digits
  958. exceeds the maximum group number, the input will be treated as a
  959. normal non-grouped number.
  960. Most people will answer N.
  961. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  962. bool "Support glibc's register_printf_function() (glibc-compat)"
  963. depends on !USE_OLD_VFPRINTF
  964. default n
  965. help
  966. Answer Y to support glibc's register_printf_function() to allow an
  967. application to add its own printf conversion specifiers.
  968. NOTE: Limits the number or registered specifiers to 10.
  969. NOTE: Requires new conversion specifiers to be ASCII
  970. characters (0-0x7f). This is to avoid problems with processing
  971. format strings in locales with different multibyte conversions.
  972. Most people will answer N.
  973. config USE_OLD_VFPRINTF
  974. bool "Use the old vfprintf implementation"
  975. depends on !UCLIBC_HAS_WCHAR
  976. default n
  977. help
  978. Set to true to use the old vfprintf instead of the new. This is
  979. roughly C89 compliant with some extensions, and is much smaller.
  980. However, it does not support wide chars, positional args, or glibc
  981. custom printf specifiers.
  982. Most people will answer N.
  983. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  984. int "Maximum number of positional args. Either 0 or >= 9."
  985. depends on !USE_OLD_VFPRINTF
  986. default 9
  987. help
  988. Set the maximum number of positional args supported by the
  989. printf/scanf functions. The Single Unix Specification Version 3
  990. requires a minimum value of 9. Setting this to a value lower than
  991. 9 will disable positional arg support and cause the NL_ARGMAX macro
  992. in limits.h to be #undef'd.
  993. WARNING! The workspace to support positional args is currently
  994. allocated on the stack. You probably don't want to set
  995. this to too high a value.
  996. Most people will answer 9.
  997. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  998. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  999. default n
  1000. help
  1001. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  1002. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  1003. Answer Y to enable support for glibc's 'a' flag for the scanf string
  1004. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  1005. auto-allocate sufficient memory to hold the data retrieved.
  1006. Most people will answer N.
  1007. choice
  1008. prompt "Stdio buffer size"
  1009. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  1010. help
  1011. Please select a value for BUFSIZ. This will be used by the
  1012. stdio subsystem as the default buffer size for a file, and
  1013. affects fopen(), setvbuf(), etc.
  1014. NOTE: Setting this to 'none' will disable buffering completely.
  1015. However, BUFSIZ will still be defined in stdio.h as 256 because
  1016. many applications use this value.
  1017. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1018. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  1019. depends on !UCLIBC_HAS_WCHAR
  1020. config UCLIBC_HAS_STDIO_BUFSIZ_256
  1021. bool "256 (minimum ANSI/ISO C99 value)"
  1022. config UCLIBC_HAS_STDIO_BUFSIZ_512
  1023. bool "512"
  1024. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  1025. bool "1024"
  1026. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  1027. bool "2048"
  1028. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  1029. bool "4096"
  1030. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  1031. bool "8192"
  1032. # If you add more choices, you will need to update uClibc_stdio.h.
  1033. endchoice
  1034. choice
  1035. prompt "Stdio builtin buffer size (uClibc-specific)"
  1036. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1037. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1038. help
  1039. When a FILE is created with fopen(), an attempt is made to allocate
  1040. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  1041. succeed but the FILE will be unbuffered.
  1042. This option adds a small amount of space to each FILE to act as an
  1043. emergency buffer in the event of a buffer allocation failure.
  1044. Most people will answer None.
  1045. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1046. bool "None"
  1047. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  1048. bool "4"
  1049. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  1050. bool "8"
  1051. # If you add more choices, you will need to update uClibc_stdio.h.
  1052. endchoice
  1053. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  1054. bool "Attempt to shutdown stdio subsystem when abort() is called."
  1055. default n
  1056. help
  1057. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was
  1058. a behavioral change made in SUSv3. Previously, abort() was required
  1059. to have the affect of fclose() on all open streams. The wording has
  1060. been changed to "may" from "shall".
  1061. Most people will answer N.
  1062. config UCLIBC_HAS_STDIO_GETC_MACRO
  1063. bool "Provide a macro version of getc()"
  1064. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1065. default y
  1066. help
  1067. Provide a macro version of getc().
  1068. Most people will answer Y.
  1069. config UCLIBC_HAS_STDIO_PUTC_MACRO
  1070. bool "Provide a macro version of putc()"
  1071. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1072. default y
  1073. help
  1074. Provide a macro version of putc().
  1075. Most people will answer Y.
  1076. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  1077. bool "Support auto-r/w transition"
  1078. default y
  1079. help
  1080. Answer Y to enable the stdio subsystem to automaticly transition
  1081. between reading and writing. This relaxes the ANSI/ISO C99
  1082. requirement:
  1083. When a file is opened with update mode ('+' as the second or third
  1084. character in the list of mode argument values), both input and output
  1085. may be performed on the associated stream. However, output shall not
  1086. be directly followed by input without an intervening call to the
  1087. fflush function or to a file positioning function (fseek, fsetpos,
  1088. or rewind), and input shall not be directly followed by output without
  1089. an intervening call to a file positioning function, unless the input
  1090. operation encounters end­of­file.
  1091. Most people will answer Y.
  1092. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  1093. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  1094. depends on UCLIBC_HAS_LFS
  1095. default n
  1096. help
  1097. Answer Y to enable a uClibc-specific extension to allow passing an
  1098. additional 'F' flag in the mode string for fopen() to specify that
  1099. the file should be open()ed with the O_LARGEFILE flag set.
  1100. Most people will answer N.
  1101. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  1102. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  1103. default n
  1104. help
  1105. Answer Y to support a glibc extension to allow passing
  1106. additional 'x' flag in the mode string for fopen() to specify that
  1107. the file should be open()ed with the O_EXCL flag set.
  1108. Most people will answer N.
  1109. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  1110. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  1111. default n
  1112. help
  1113. Answer Y to support the glibc 'custom stream' extension functions
  1114. fmemopen(), open_memstream(), and fopencookie().
  1115. NOTE: There are some minor differences regarding seeking behavior.
  1116. Most people will answer N.
  1117. config UCLIBC_HAS_PRINTF_M_SPEC
  1118. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  1119. default n
  1120. help
  1121. Answer Y to support a glibc extension to interpret '%m' in printf
  1122. format strings as an instruction to output the error message string
  1123. (as generated by strerror) corresponding to the current value of
  1124. 'errno'.
  1125. Most people will answer N.
  1126. config UCLIBC_HAS_ERRNO_MESSAGES
  1127. bool "Include the errno message text in the library"
  1128. default y
  1129. help
  1130. Answer Y if you want to include the errno message text in the
  1131. library. This adds about 3K to the library, but enables strerror()
  1132. to generate text other than 'Unknown error <number>'.
  1133. Most people will answer Y.
  1134. config UCLIBC_HAS_SYS_ERRLIST
  1135. bool "Support sys_errlist[] (obsolete-compat)"
  1136. depends on UCLIBC_HAS_ERRNO_MESSAGES
  1137. default n
  1138. help
  1139. Answer Y if you want to support the obsolete sys_errlist[].
  1140. This adds about 0.5k to the library, except for the mips
  1141. arch where it adds over 4K.
  1142. WARNING! In the future, support for sys_errlist[] may be unavailable
  1143. in at least some configurations. In fact, it may be removed
  1144. altogether.
  1145. Most people will answer N.
  1146. Application writers: use the strerror(3) function.
  1147. config UCLIBC_HAS_SIGNUM_MESSAGES
  1148. bool "Include the signum message text in the library"
  1149. default y
  1150. help
  1151. Answer Y if you want to include the signum message text in the
  1152. library. This adds about 0.5K to the library, but enables strsignal()
  1153. to generate text other than 'Unknown signal <number>'.
  1154. Most people will answer Y.
  1155. config UCLIBC_HAS_SYS_SIGLIST
  1156. bool "Support sys_siglist[] (bsd-compat)"
  1157. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  1158. default n
  1159. help
  1160. Answer Y if you want to support sys_siglist[].
  1161. WARNING! In the future, support for sys_siglist[] may be unavailable
  1162. in at least some configurations. In fact, it may be removed
  1163. altogether.
  1164. Most people will answer N.
  1165. config UCLIBC_HAS_GETTEXT_AWARENESS
  1166. bool "Include gettext awareness"
  1167. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  1168. default n
  1169. help
  1170. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  1171. Answer Y if you want to include weak stub gettext support and
  1172. make the *strerror*() and strsignal() functions gettext-aware.
  1173. Currently, to get functional gettext functionality you will need
  1174. to use gnu gettext.
  1175. Most people will answer N.
  1176. config UCLIBC_HAS_GNU_GETOPT
  1177. bool "Support gnu getopt"
  1178. default y
  1179. help
  1180. Answer Y if you want to include full gnu getopt() instead of a
  1181. (much smaller) SUSv3 compatible getopt().
  1182. Most people will answer Y.
  1183. config UCLIBC_HAS_STDIO_FUTEXES
  1184. bool "Use futexes for multithreaded I/O locking"
  1185. default n
  1186. depends on UCLIBC_HAS_THREADS_NATIVE
  1187. help
  1188. If you want to compile uClibc to use futexes for low-level
  1189. I/O locking, answer Y. Otherwise, answer N.
  1190. config UCLIBC_HAS_GETOPT_LONG
  1191. bool "Support getopt_long/getopt_long_only"
  1192. depends on !UCLIBC_HAS_GNU_GETOPT
  1193. default y
  1194. help
  1195. Answer Y if you want to include getopt_long[_only() used by many
  1196. apps, even busybox.
  1197. Most people will answer Y.
  1198. config UCLIBC_HAS_GNU_GETSUBOPT
  1199. bool "Support glibc getsubopt"
  1200. default y
  1201. help
  1202. Answer Y if you want to include glibc getsubopt() instead of a
  1203. smaller SUSv3 compatible getsubopt().
  1204. Most people will answer Y.
  1205. endmenu
  1206. menu "Big and Tall"
  1207. config UCLIBC_HAS_REGEX
  1208. bool "Regular Expression Support"
  1209. default y
  1210. help
  1211. POSIX regular expression code is really big -- 53k all by itself.
  1212. If you don't use regular expressions, turn this off and save space.
  1213. Of course, if you only statically link, leave this on, since it will
  1214. only be included in your apps if you use regular expressions.
  1215. config UCLIBC_HAS_REGEX_OLD
  1216. bool "Use the older (stable) regular expression code"
  1217. depends on UCLIBC_HAS_REGEX
  1218. default y
  1219. help
  1220. There are two versions of regex. The older (stable) version has
  1221. been in uClibc for quite a long time but hasn't seen too many
  1222. updates. It also has some known issues when dealing with uncommon
  1223. corner cases and multibyte/unicode strings. However, it is quite
  1224. a bit smaller than the newer version.
  1225. If the older version has worked for you and you don't need unicode
  1226. support, then stick with the old version (and say Y here).
  1227. Otherwise, you should use the new version (and say N here).
  1228. config UCLIBC_HAS_FNMATCH
  1229. bool "fnmatch Support"
  1230. default y
  1231. help
  1232. POSIX fnmatch.
  1233. config UCLIBC_HAS_FNMATCH_OLD
  1234. bool "Use the older (stable) fnmatch code"
  1235. depends on UCLIBC_HAS_FNMATCH
  1236. default y
  1237. help
  1238. There are two versions of fnmatch. The older (stable) version has
  1239. been in uClibc for quite a long time but hasn't seen too many
  1240. updates. It also has some known issues when dealing with uncommon
  1241. corner cases and multibyte/unicode strings. However, it is quite
  1242. a bit smaller than the newer version.
  1243. If the older version has worked for you and you don't need unicode
  1244. support, then stick with the old version (and say Y here).
  1245. Otherwise, you should use the new version (and say N here).
  1246. config UCLIBC_HAS_WORDEXP
  1247. bool "Support the wordexp() interface"
  1248. depends on UCLIBC_HAS_GLOB
  1249. default n
  1250. help
  1251. The SuSv3 wordexp() interface performs word expansions per the Shell
  1252. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  1253. intended for use by applications that want to implement all of the
  1254. standard Bourne shell expansions on input data.
  1255. This interface is rarely used, and very large. Unless you have a
  1256. pressing need for wordexp(), you should probably answer N.
  1257. config UCLIBC_HAS_FTW
  1258. bool "Support the ftw() and nftw() interfaces"
  1259. default n
  1260. help
  1261. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  1262. directory paths while repeatedly calling a function.
  1263. This interface is rarely used, and adds around 4.5k. Unless you have
  1264. a pressing need for ftw() or nftw(), you should probably answer N.
  1265. config UCLIBC_HAS_GLOB
  1266. bool "Support the glob() interface"
  1267. depends on UCLIBC_HAS_FNMATCH
  1268. default y
  1269. help
  1270. The glob interface is somewhat large (weighing in at about 2,5k). It
  1271. is used fairly often, but is an option since people wanting to go for
  1272. absolute minimum size may wish to omit it.
  1273. Most people will answer Y.
  1274. config UCLIBC_HAS_GNU_GLOB
  1275. bool "Support gnu glob() interface"
  1276. depends on UCLIBC_HAS_GLOB
  1277. default n
  1278. help
  1279. The gnu glob interface is somewhat larger (weighing in at about 4,2k)
  1280. than it's SuSv3 counterpart (and is out of date). It is an old copy
  1281. from glibc and does not support all the GNU specific options.
  1282. Answer Y if you want to include full gnu glob() instead of the smaller
  1283. SUSv3 compatible glob().
  1284. Most people will answer N.
  1285. endmenu
  1286. menu "Library Installation Options"
  1287. config SHARED_LIB_LOADER_PREFIX
  1288. string "Shared library loader path"
  1289. depends on HAVE_SHARED
  1290. default "$(RUNTIME_PREFIX)lib"
  1291. help
  1292. When using shared libraries, this path is the location where the
  1293. shared library will be invoked. This value will be compiled into
  1294. every binary compiled with uClibc.
  1295. For a typical target system this should be set to "/lib", such that
  1296. 'make install' will install /lib/ld-uClibc.so.0.
  1297. BIG FAT WARNING:
  1298. If you do not have a shared library loader with the correct name
  1299. sitting in the directory this points to, your binaries will not
  1300. run.
  1301. config RUNTIME_PREFIX
  1302. string "uClibc runtime library directory"
  1303. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  1304. help
  1305. RUNTIME_PREFIX is the directory into which the uClibc runtime
  1306. libraries will be installed. The result will look something
  1307. like the following:
  1308. $(RUNTIME_PREFIX)/
  1309. lib/ <contains all runtime libraries>
  1310. usr/bin/ldd <the ldd utility program>
  1311. sbin/ldconfig <the ldconfig utility program>
  1312. This value is used by the 'make install' Makefile target. Since this
  1313. directory is compiled into the shared library loader, you will need to
  1314. recompile uClibc if you change this value...
  1315. For a typical target system this should be set to "/", such that
  1316. 'make install' will install /lib/libuClibc-<VERSION>.so
  1317. config DEVEL_PREFIX
  1318. string "uClibc development environment directory"
  1319. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  1320. help
  1321. DEVEL_PREFIX is the directory into which the uClibc development
  1322. environment will be installed. The result will look something
  1323. like the following:
  1324. $(DEVEL_PREFIX)/
  1325. lib/ <contains static libs>
  1326. include/ <Where all the header files go>
  1327. This value is used by the 'make install' Makefile target when
  1328. installing a uClibc development environment.
  1329. For a typical target system this should be set to "/usr", such that
  1330. 'make install' will install /usr/include/<header files>.
  1331. config HARDWIRED_ABSPATH
  1332. bool "Hardwire absolute paths into linker scripts"
  1333. default y
  1334. help
  1335. This prepends absolute paths to the libraries mentioned in linker
  1336. scripts such as libc.so.
  1337. This is a build time optimization. It has no impact on dynamic
  1338. linking at runtime, which doesn't use linker scripts.
  1339. You must disable this to use uClibc with a relocatable toolchain,
  1340. such as the prebuilt binary cross compilers at
  1341. http://uclibc.org/downloads/binaries which may be installed at an
  1342. arbitrary location (such as in a user's home directory).
  1343. The amount of time saved by this optimization is actually too small to
  1344. measure. The linker just had to search the library path to find the
  1345. linker script, so the dentries are cache hot if it has to search the
  1346. same path again. But it's what glibc does, so we do it too.
  1347. endmenu
  1348. menu "Security options"
  1349. config UCLIBC_BUILD_PIE
  1350. bool "Build utilities as ET_DYN/PIE executables"
  1351. depends on HAVE_SHARED
  1352. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  1353. select FORCE_SHAREABLE_TEXT_SEGMENTS
  1354. default n
  1355. help
  1356. If you answer Y here, ldd and iconv are built as ET_DYN/PIE
  1357. executables.
  1358. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  1359. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  1360. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so
  1361. all libraries have to be built with -fPIC or -fpic, and all
  1362. assembler functions must be written as position independent
  1363. code (PIC).
  1364. config UCLIBC_HAS_ARC4RANDOM
  1365. bool "Include the arc4random() function"
  1366. default n
  1367. help
  1368. Answer Y to support the OpenBSD-like arc4random() function. This
  1369. function picks a random number between 0 and N, and will always return
  1370. something even if the random driver is dead. If urandom fails then
  1371. gettimeofday(2) will be used as the random seed. This function is
  1372. designed to be more dependable than invoking /dev/urandom directly.
  1373. OpenSSL and OpenNTPD currently support this function.
  1374. Most people will answer N.
  1375. config HAVE_NO_SSP
  1376. bool
  1377. default n
  1378. config UCLIBC_HAS_SSP
  1379. bool "Support for GCC stack smashing protector"
  1380. depends on !HAVE_NO_SSP
  1381. default n
  1382. help
  1383. Add code to support GCC's -fstack-protector[-all] option to uClibc.
  1384. This requires GCC 4.1 or newer. GCC does not have to provide libssp,
  1385. the needed functions are added to ldso/libc instead.
  1386. GCC's stack protector is a reimplementation of IBM's propolice.
  1387. See http://www.trl.ibm.com/projects/security/ssp/ and
  1388. http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  1389. for details.
  1390. Note that NOEXECSTACK on a kernel with address space randomization
  1391. is generally sufficient to prevent most buffer overflow exploits
  1392. without increasing code size. This option essentially adds debugging
  1393. code to catch them.
  1394. Most people will answer N.
  1395. config UCLIBC_HAS_SSP_COMPAT
  1396. bool "Support for gcc-3.x propolice smashing stack protector"
  1397. depends on UCLIBC_HAS_SSP
  1398. default n
  1399. help
  1400. Add gcc-3.x propolice smashing stack protector to the library.
  1401. This requires a patched version of GCC, supporting the
  1402. -fstack-protector[-all] options, with the __guard and
  1403. __stack_smash_handler functions removed from libgcc.
  1404. These functions are added to ldso/libc instead.
  1405. More information at:
  1406. <http://www.research.ibm.com/trl/projects/security/ssp/>
  1407. Most people will answer N.
  1408. config SSP_QUICK_CANARY
  1409. bool "Use simple guard values without accessing /dev/urandom"
  1410. depends on UCLIBC_HAS_SSP
  1411. default n
  1412. help
  1413. Use gettimeofday(2) to define the __guard without accessing
  1414. /dev/urandom.
  1415. WARNING: This makes smashing stack protector vulnerable to timing
  1416. attacks.
  1417. Most people will answer N.
  1418. choice
  1419. prompt "Propolice protection blocking signal"
  1420. depends on UCLIBC_HAS_SSP
  1421. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  1422. default PROPOLICE_BLOCK_SEGV if DODEBUG
  1423. help
  1424. "abort" use SIGABRT to block offending programs.
  1425. This is the default implementation.
  1426. "segfault" use SIGSEGV to block offending programs.
  1427. Use this for debugging.
  1428. If unsure, answer "abort".
  1429. config PROPOLICE_BLOCK_ABRT
  1430. bool "abort"
  1431. config PROPOLICE_BLOCK_SEGV
  1432. bool "segfault"
  1433. endchoice
  1434. config UCLIBC_BUILD_SSP
  1435. bool "Build uClibc with -fstack-protector"
  1436. depends on UCLIBC_HAS_SSP
  1437. default n
  1438. help
  1439. Build all uClibc libraries and executables with -fstack-protector,
  1440. adding extra stack overflow checking to most uClibc functions.
  1441. config UCLIBC_BUILD_RELRO
  1442. bool "Build uClibc with linker option -z RELRO"
  1443. depends on HAVE_SHARED
  1444. default y
  1445. help
  1446. Build all libraries and executables with "ld -z relro".
  1447. This tells the linker to mark chunks of an executable or shared
  1448. library read-only after applying dynamic relocations. (This comes
  1449. up when a global const variable is initialized to the address of a
  1450. function or the value of another global variable.)
  1451. This is a fairly obscure option the ld man page doesn't even bother
  1452. to document properly. It's a security paranoia issue that's more
  1453. likely to consume memory (by allocating an extra page) rather than
  1454. save it.
  1455. This is explained in more depth at
  1456. http://www.airs.com/blog/archives/189
  1457. Nobody is likely to care whether you say Y or N here.
  1458. config UCLIBC_BUILD_NOW
  1459. bool "Build uClibc with linker option -z NOW"
  1460. depends on HAVE_SHARED
  1461. default n
  1462. help
  1463. Build all libraries and executables with "ld -z now".
  1464. This tells the linker to resolve all symbols when the library is
  1465. first loaded, rather than when each function is first called. This
  1466. increases start-up latency by a few microseconds and may do
  1467. unnecessary work (resolving symbols that are never used), but the
  1468. realtime people like it for making microbenchmark timings slightly
  1469. more predictable and in some cases it can be slightly faster due to
  1470. CPU cache behavior (not having to fault the linker back in to do
  1471. lazy symbol resolution).
  1472. Most people can't tell the difference between selecting Y or N here.
  1473. config UCLIBC_BUILD_NOEXECSTACK
  1474. bool "Build uClibc with noexecstack marking"
  1475. default y
  1476. help
  1477. Mark all assembler files as noexecstack, which will mark uClibc
  1478. as not requiring an executable stack. (This doesn't prevent other
  1479. files you link against from claiming to need an executable stack, it
  1480. just won't cause uClibc to request it unnecessarily.)
  1481. This is a security thing to make buffer overflows harder to exploit.
  1482. By itself, it's kind of useless, as Linus Torvalds explained in 1998:
  1483. http://old.lwn.net/1998/0806/a/linus-noexec.html
  1484. It only actually provides any security when combined with address
  1485. space randomization, explained here: http://lwn.net/Articles/121845/
  1486. Address space randomization is on by default in current linux
  1487. kernels (although it can be disabled using the option
  1488. CONFIG_COMPAT_BRK).
  1489. You should probably say Y.
  1490. endmenu
  1491. menu "uClibc development/debugging options"
  1492. config CROSS_COMPILER_PREFIX
  1493. string "Cross-compiling toolchain prefix"
  1494. default ""
  1495. help
  1496. The prefix used to execute your cross-compiling toolchain. For
  1497. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1498. then enter 'arm-linux-uclibc-' here.
  1499. config UCLIBC_EXTRA_CFLAGS
  1500. string "Enter any extra CFLAGS to use to build uClibc"
  1501. default ""
  1502. help
  1503. Add any additional CFLAGS to be used to build uClibc.
  1504. config DODEBUG
  1505. bool "Build uClibc with debugging symbols"
  1506. default n
  1507. select EXTRA_WARNINGS
  1508. help
  1509. Say Y here if you wish to compile uClibc with debugging symbols.
  1510. This will allow you to use a debugger to examine uClibc internals
  1511. while applications are running. This increases the size of the
  1512. library considerably and should only be used when doing development.
  1513. If you are doing development and want to debug uClibc, answer Y.
  1514. Otherwise, answer N.
  1515. config DODEBUG_PT
  1516. bool "Build pthread with debugging output"
  1517. depends on UCLIBC_HAS_THREADS && LINUXTHREADS_OLD
  1518. default n
  1519. help
  1520. Enable debug output in libpthread. This is only useful when doing
  1521. development in libpthread itself.
  1522. Otherwise, answer N.
  1523. config DOSTRIP
  1524. bool "Strip libraries and executables"
  1525. default y
  1526. depends on !DODEBUG
  1527. help
  1528. Say Y here if you do wish to strip all uClibc libraries and
  1529. executables. No stripping increases the size of the binaries
  1530. considerably, but makes it possible to debug uClibc libraries.
  1531. Most people will answer Y.
  1532. config DOASSERTS
  1533. bool "Build uClibc with run-time assertion testing"
  1534. default n
  1535. help
  1536. Say Y here to include runtime assertion tests.
  1537. This enables runtime assertion testing in some code, which can
  1538. increase the size of the library and incur runtime overhead.
  1539. If you say N, then this testing will be disabled.
  1540. config SUPPORT_LD_DEBUG
  1541. bool "Build the shared library loader with debugging support"
  1542. depends on HAVE_SHARED
  1543. default n
  1544. help
  1545. Answer Y here to enable all the extra code needed to debug the uClibc
  1546. native shared library loader. The level of debugging noise that is
  1547. generated depends on the LD_DEBUG environment variable... Just set
  1548. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1549. debug your application. Diagnostic messages will then be printed to
  1550. the stderr.
  1551. For now these debugging tokens are available:
  1552. detail provide more information for some options
  1553. move display copy processing
  1554. symbols display symbol table processing
  1555. reloc display relocation processing; detail shows the
  1556. relocation patch
  1557. nofixups never fixes up jump relocations
  1558. bindings displays the resolve processing (function calls);
  1559. detail shows the relocation patch
  1560. all Enable everything!
  1561. The additional environment variable:
  1562. LD_DEBUG_OUTPUT=file
  1563. redirects the diagnostics to an output file created using
  1564. the specified name and the process id as a suffix.
  1565. An excellent start is simply:
  1566. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1567. or to log everything to a file named 'logfile', try this
  1568. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1569. If you are doing development and want to debug uClibc's shared library
  1570. loader, answer Y. Mere mortals answer N.
  1571. config SUPPORT_LD_DEBUG_EARLY
  1572. bool "Build the shared library loader with early debugging support"
  1573. depends on HAVE_SHARED
  1574. default n
  1575. help
  1576. Answer Y here to if you find the uClibc shared library loader is
  1577. crashing or otherwise not working very early on. This is typical
  1578. only when starting a new port when you haven't figured out how to
  1579. properly get the values for argc, argv, environ, etc. This method
  1580. allows a degree of visibility into the very early shared library
  1581. loader initialization process. If you are doing development and want
  1582. to debug the uClibc shared library loader early initialization,
  1583. answer Y. Mere mortals answer N.
  1584. config UCLIBC_MALLOC_DEBUGGING
  1585. bool "Build malloc with debugging support"
  1586. depends on MALLOC || MALLOC_STANDARD
  1587. default n
  1588. help
  1589. Answer Y here to compile extra debugging support code into malloc.
  1590. Malloc debugging output may then be enabled at runtime using the
  1591. MALLOC_DEBUG environment variable.
  1592. The value of MALLOC_DEBUG should be an integer, which is interpreted
  1593. as a bitmask with the following bits:
  1594. 1 - do extra consistency checking
  1595. 2 - output messages for malloc/free calls and OS
  1596. allocation calls
  1597. 4 - output messages for the `MMB' layer
  1598. 8 - output messages for internal malloc heap manipulation
  1599. calls
  1600. Because this increases the size of malloc appreciably (due to strings
  1601. etc), you should say N unless you need to debug a malloc problem.
  1602. config WARNINGS
  1603. string "Compiler Warnings"
  1604. default "-Wall"
  1605. help
  1606. Set this to the set of gcc warnings you wish to see while compiling.
  1607. config EXTRA_WARNINGS
  1608. bool "Enable extra annoying warnings"
  1609. default n
  1610. help
  1611. If you wish to build with extra warnings enabled, say Y here.
  1612. config DOMULTI
  1613. bool "Compile all sources at once into an object"
  1614. default n
  1615. help
  1616. Set this to compile all sources at once into an object (IMA).
  1617. This mode of compilation uses alot of memory but may produce
  1618. smaller binaries.
  1619. Note that you need a very recent GCC for this to work, like
  1620. gcc >= 4.3 plus eventually some patches.
  1621. If unsure, keep the default of N.
  1622. config UCLIBC_MJN3_ONLY
  1623. bool "Manuel's hidden warnings"
  1624. default n
  1625. help
  1626. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1627. Most people will answer N.
  1628. endmenu
  1629. config HAVE_DOT_CONFIG
  1630. def_bool y