Config.in 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. mainmenu "uClibc C Library Configuration"
  6. choice
  7. prompt "Target Architecture"
  8. default TARGET_i386
  9. help
  10. Stuff
  11. config TARGET_alpha
  12. bool "alpha"
  13. config TARGET_arm
  14. bool "arm"
  15. config TARGET_bfin
  16. bool "bfin (BROKEN)"
  17. config TARGET_cris
  18. bool "cris (BROKEN)"
  19. config TARGET_e1
  20. bool "e1 (BROKEN)"
  21. config TARGET_frv
  22. bool "frv (BROKEN)"
  23. config TARGET_h8300
  24. bool "h8300 (BROKEN)"
  25. config TARGET_hppa
  26. bool "hppa"
  27. config TARGET_i386
  28. bool "i386"
  29. config TARGET_i960
  30. bool "i960 (BROKEN)"
  31. config TARGET_m68k
  32. bool "m68k"
  33. config TARGET_microblaze
  34. bool "microblaze (BROKEN)"
  35. config TARGET_mips
  36. bool "mips"
  37. config TARGET_nios
  38. bool "nios (BROKEN)"
  39. config TARGET_nios2
  40. bool "nios2 (BROKEN)"
  41. config TARGET_powerpc
  42. bool "powerpc"
  43. config TARGET_sh
  44. bool "superh"
  45. config TARGET_sh64
  46. bool "sh64"
  47. config TARGET_sparc
  48. bool "sparc"
  49. config TARGET_v850
  50. bool "v850 (BROKEN)"
  51. config TARGET_x86_64
  52. bool "x86_64"
  53. endchoice
  54. menu "Target Architecture Features and Options"
  55. if TARGET_alpha
  56. source "extra/Configs/Config.alpha"
  57. endif
  58. if TARGET_arm
  59. source "extra/Configs/Config.arm"
  60. endif
  61. if TARGET_bfin
  62. source "extra/Configs/Config.bfin"
  63. endif
  64. if TARGET_cris
  65. source "extra/Configs/Config.cris"
  66. endif
  67. if TARGET_e1
  68. source "extra/Configs/Config.e1"
  69. endif
  70. if TARGET_frv
  71. source "extra/Configs/Config.frv"
  72. endif
  73. if TARGET_h8300
  74. source "extra/Configs/Config.h8300"
  75. endif
  76. if TARGET_hppa
  77. source "extra/Configs/Config.hppa"
  78. endif
  79. if TARGET_i386
  80. source "extra/Configs/Config.i386"
  81. endif
  82. if TARGET_i960
  83. source "extra/Configs/Config.i960"
  84. endif
  85. if TARGET_m68k
  86. source "extra/Configs/Config.m68k"
  87. endif
  88. if TARGET_nios
  89. source "extra/Configs/Config.nios"
  90. endif
  91. if TARGET_nios2
  92. source "extra/Configs/Config.nios2"
  93. endif
  94. if TARGET_microblaze
  95. source "extra/Configs/Config.microblaze"
  96. endif
  97. if TARGET_mips
  98. source "extra/Configs/Config.mips"
  99. endif
  100. if TARGET_powerpc
  101. source "extra/Configs/Config.powerpc"
  102. endif
  103. if TARGET_sh
  104. source "extra/Configs/Config.sh"
  105. endif
  106. if TARGET_sh64
  107. source "extra/Configs/Config.sh64"
  108. endif
  109. if TARGET_sparc
  110. source "extra/Configs/Config.sparc"
  111. endif
  112. if TARGET_v850
  113. source "extra/Configs/Config.v850"
  114. endif
  115. if TARGET_x86_64
  116. source "extra/Configs/Config.x86_64"
  117. endif
  118. source "extra/Configs/Config.in.arch"
  119. endmenu
  120. menu "General Library Settings"
  121. config HAVE_NO_PIC
  122. bool
  123. default n
  124. config DOPIC
  125. bool "Generate only Position Independent Code (PIC)"
  126. default y
  127. depends !HAVE_NO_PIC
  128. help
  129. If you wish to build all of uClibc as PIC objects, then answer Y here.
  130. If you are unsure, then you should answer N.
  131. config HAVE_NO_SHARED
  132. bool
  133. default n
  134. config ARCH_HAS_NO_LDSO
  135. bool
  136. select HAVE_NO_SHARED
  137. default n
  138. config HAVE_SHARED
  139. bool "Enable support for shared libraries"
  140. depends on !HAVE_NO_SHARED
  141. default y
  142. help
  143. If you wish to build uClibc with support for shared libraries then
  144. answer Y here. If you only want to build uClibc as a static library,
  145. then answer N.
  146. config FORCE_SHAREABLE_TEXT_SEGMENTS
  147. bool "Only load shared libraries which can share their text segment"
  148. depends on HAVE_SHARED
  149. select DOPIC
  150. default n
  151. help
  152. If you answer Y here, the uClibc native shared library loader will
  153. only load shared libraries, which do not need to modify any non-writable
  154. segments. These libraries haven't set the DT_TEXTREL tag in the dynamic
  155. section (==> objdump). All your libraries must be compiled with
  156. -fPIC or -fpic, and all assembler function must be written as position
  157. independent code (PIC).
  158. Enabling this option will make uClibc's shared library loader a
  159. little bit smaller and guarantee that no memory will be wasted by badly
  160. coded shared libraries.
  161. config LDSO_LDD_SUPPORT
  162. bool "Native shared library loader 'ldd' support"
  163. depends on HAVE_SHARED
  164. default y
  165. help
  166. Enable this to enable all the code needed to support traditional ldd,
  167. which executes the shared library loader to resolve all dependencies
  168. and then provide a list of shared libraries that are required for an
  169. application to function. Disabling this option will makes uClibc's
  170. shared library loader a little bit smaller. Most people will answer Y.
  171. config LDSO_CACHE_SUPPORT
  172. bool "Enable shared library loader cache"
  173. depends on HAVE_SHARED
  174. default y
  175. help
  176. Enable this to make use of /etc/ld.so.conf, the shared library loader
  177. cache configuration file to support for non-standard library paths.
  178. After updating this file, it is necessary to run 'ldconfig' to update
  179. the /etc/ld.so.cache shared library loader cache file.
  180. config LDSO_PRELOAD_FILE_SUPPORT
  181. bool "Enable shared library loader preload file support"
  182. depends on HAVE_SHARED
  183. default n
  184. help
  185. Enable this to make use of /etc/ld.so.preload. This file contains a
  186. whitespace separated list of shared libraries to be loaded before
  187. the program.
  188. config LDSO_BASE_FILENAME
  189. string "Shared library loader naming prefix"
  190. depends on HAVE_SHARED && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  191. default "ld.so"
  192. help
  193. If you wish to support both uClibc and glibc on the same system, it
  194. is necessary to set this to something other than "ld.so" to avoid
  195. conflicts with glibc, which also uses "ld.so". This prevents both
  196. libraries from using the same /etc/ld.so.* files. If you wish to
  197. support both uClibc and glibc on the same system then you should set
  198. this to "ld-uClibc.so".
  199. Most people will leave this set to the default of "ld.so".
  200. WARNING: Changing the default prefix could cause problems with
  201. binutils' ld !
  202. config LDSO_RUNPATH
  203. bool "Enable ELF RUNPATH tag support"
  204. depends on HAVE_SHARED
  205. default y
  206. help
  207. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  208. which extend the library search paths. They are really only useful
  209. if a package installs libraries in non standard locations and
  210. ld.so.conf support is disabled.
  211. Usage of RUNPATH tags is not too common, so disabling this feature
  212. should be safe for most people.
  213. config UCLIBC_CTOR_DTOR
  214. bool "Support global constructors and destructors"
  215. default y
  216. help
  217. If you wish to build uClibc with support for global constructor
  218. (ctor) and global destructor (dtor) support, then answer Y here.
  219. When ctor/dtor support is enabled, binaries linked with uClibc must
  220. also be linked with crtbegin.o and crtend.o which are provided by gcc
  221. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  222. may need to be adjusted to include these files). This support will
  223. also add a small amount of additional size to each binary compiled vs
  224. uClibc. If you will be using uClibc with C++, or if you need the gcc
  225. __attribute__((constructor)) and __attribute__((destructor)) to work,
  226. then you definitely want to answer Y here. If you don't need ctors
  227. or dtors and want your binaries to be as small as possible, then
  228. answer N.
  229. config HAS_NO_THREADS
  230. bool
  231. default n
  232. config UCLIBC_HAS_THREADS
  233. bool "POSIX Threading Support"
  234. depends on !HAS_NO_THREADS
  235. default y
  236. help
  237. If you want to compile uClibc with pthread support, then answer Y.
  238. This will increase the size of uClibc by adding a bunch of locking
  239. to critical data structures, and adding extra code to ensure that
  240. functions are properly reentrant.
  241. If your applications require pthreads, answer Y.
  242. config PTHREADS_DEBUG_SUPPORT
  243. bool "Build pthreads debugging support"
  244. default n
  245. depends on UCLIBC_HAS_THREADS
  246. help
  247. Say Y here if you wish to be able to debug applications that use
  248. uClibc's pthreads library. By enabling this option, a library
  249. named libthread_db will be built. This library will be dlopen()'d
  250. by gdb and will allow gdb to debug the threads in your application.
  251. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  252. you must compile gdb with uClibc in order for pthread debugging to
  253. work properly.
  254. If you are doing development and want to debug applications using
  255. uClibc's pthread library, answer Y. Otherwise, answer N.
  256. config UCLIBC_HAS_LFS
  257. bool "Large File Support"
  258. default y
  259. help
  260. If you wish to build uClibc with support for accessing large files
  261. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  262. if you are using an older Linux kernel (2.0.x) that lacks large file
  263. support. Enabling this option will increase the size of uClibc.
  264. config UCLIBC_STATIC_LDCONFIG
  265. bool "Link ldconfig statically"
  266. default y
  267. help
  268. Enable this option to statically link the ldconfig binary.
  269. Making ldconfig static can be beneficial if you have a library
  270. problem and need to use ldconfig to recover. Sometimes, it is
  271. preferable to instead keep the size of the system down, in which
  272. case you should disable this option.
  273. choice
  274. prompt "Malloc Implementation"
  275. default MALLOC if ! ARCH_HAS_MMU
  276. default MALLOC_STANDARD if ARCH_HAS_MMU
  277. help
  278. "malloc" use mmap for all allocations and so works very well on MMU-less
  279. systems that do not support the brk() system call. It is pretty smart
  280. about reusing already allocated memory, and minimizing memory wastage.
  281. This is the default for uClinux MMU-less systems.
  282. "malloc-simple" was written from scratch for uClibc, and is the
  283. simplest possible (and therefore smallest) malloc implementation.
  284. This uses only the mmap() system call to allocation memory, and does
  285. not use the brk() system call at all, making it a fine choice for
  286. MMU-less systems with very limited memory. It is rather dumb, and
  287. certainly isn't the fastest. But it is 100% standards compliant,
  288. thread safe, and very small.
  289. "malloc-standard" is derived from the public domain dlmalloc
  290. implementation by Doug Lea. It is quite fast, and is pretty smart
  291. about reusing already allocated memory, and minimizing memory
  292. wastage. This uses brk() for small allocations, while using mmap()
  293. for larger allocations. This is the default malloc implementation
  294. for uClibc.
  295. If unsure, answer "malloc-standard".
  296. config MALLOC
  297. bool "malloc"
  298. config MALLOC_SIMPLE
  299. bool "malloc-simple"
  300. config MALLOC_STANDARD
  301. bool "malloc-standard"
  302. depends on ARCH_HAS_MMU
  303. endchoice
  304. config MALLOC_GLIBC_COMPAT
  305. bool "Malloc returns live pointer for malloc(0)"
  306. default n
  307. help
  308. The behavior of malloc(0) is listed as implementation-defined by
  309. SuSv3. Glibc returns a valid pointer to something, while uClibc
  310. normally return a NULL. I personally feel glibc's behavior is
  311. not particularly safe, and allows buggy applications to hide very
  312. serious problems.
  313. When this option is enabled, uClibc will act just like glibc, and
  314. return a live pointer when someone calls malloc(0). This pointer
  315. provides a malloc'ed area with a size of 1 byte. This feature is
  316. mostly useful when dealing with applications using autoconf's broken
  317. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  318. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  319. behavior). Most people can safely answer N.
  320. config UCLIBC_DYNAMIC_ATEXIT
  321. bool "Dynamic atexit() Support"
  322. default y
  323. help
  324. When this option is enabled, uClibc will support an infinite number,
  325. of atexit() and on_exit() functions, limited only by your available
  326. memory. This can be important when uClibc is used with C++, since
  327. global destructors are implemented via atexit(), and it is quite
  328. possible to exceed the default number when this option is disabled.
  329. Enabling this option adds a few bytes, and more significantly makes
  330. atexit and on_exit depend on malloc, which can be bad when compiling
  331. static executables.
  332. Unless you use uClibc with C++, you should probably answer N.
  333. config COMPAT_ATEXIT
  334. bool "Old (visible) atexit Support"
  335. default n
  336. help
  337. Enable this option if you want to update from 0.9.28 to svn/0.9.29, else
  338. you will be missing atexit() until you rebuild all apps.
  339. config HAS_SHADOW
  340. bool "Shadow Password Support"
  341. default y
  342. help
  343. Answer N if you do not need shadow password support.
  344. Most people will answer Y.
  345. config UNIX98PTY_ONLY
  346. bool "Support only Unix 98 PTYs"
  347. default y
  348. help
  349. If you want to support only Unix 98 PTYs enable this. Some older
  350. applications may need this disabled. For most current programs,
  351. you can generally answer Y.
  352. config ASSUME_DEVPTS
  353. bool "Assume that /dev/pts is a devpts or devfs file system"
  354. default y
  355. help
  356. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  357. these filesystems automatically manage permissions on the /dev/pts
  358. devices. You may need to mount your devpts or devfs filesystem on
  359. /dev/pts for this to work.
  360. Most people should answer Y.
  361. config UCLIBC_HAS_TM_EXTENSIONS
  362. bool "Support 'struct tm' timezone extension fields"
  363. default y
  364. help
  365. Enabling this option adds fields to 'struct tm' in time.h for
  366. tracking the number of seconds east of UTC, and an abbreviation for
  367. the current timezone. These fields are not specified by the SuSv3
  368. standard, but they are commonly used in both GNU and BSD application
  369. code.
  370. To strictly follow the SuSv3 standard, leave this disabled.
  371. Most people will probably want to answer Y.
  372. config UCLIBC_HAS_TZ_CACHING
  373. bool "Enable caching of the last valid timezone 'TZ' string"
  374. default y
  375. help
  376. Answer Y to enable caching of the last valid 'TZ' string describing
  377. the timezone setting. This allows a quick string compare to avoid
  378. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  379. Most people will answer Y.
  380. config UCLIBC_HAS_TZ_FILE
  381. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  382. default y
  383. help
  384. Answer Y to enable the setting of a default timezone for uClibc.
  385. Ordinarily, uClibc gets the timezone information exclusively from the
  386. 'TZ' environment variable. In particular, there is no support for
  387. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  388. With this option enabled, uClibc will use the value stored in the
  389. file '/etc/TZ' (default path) to obtain timezone information if the
  390. 'TZ' environment variable is missing or has an invalid value. The
  391. file consists of a single line (newline required) of text describing
  392. the timezone in the format specified for the TZ environment variable.
  393. Simply doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  394. See
  395. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  396. for details on valid settings of 'TZ'.
  397. Most people will answer Y.
  398. config UCLIBC_HAS_TZ_FILE_READ_MANY
  399. bool "Repeatedly read the '/etc/TZ' file"
  400. depends on UCLIBC_HAS_TZ_FILE
  401. default y
  402. help
  403. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  404. a valid value has been read. This incurs the overhead of an open/read/close
  405. for each tzset() call (explicit or implied). However, setting this
  406. will allows applications to update their timezone information if the contents
  407. of the file change.
  408. Most people will answer Y.
  409. config UCLIBC_TZ_FILE_PATH
  410. string "Path to the 'TZ' file for setting the global timezone"
  411. depends on UCLIBC_HAS_TZ_FILE
  412. default "/etc/TZ"
  413. help
  414. This is the path to the 'TZ' file.
  415. Most people will use the default of '/etc/TZ'.
  416. endmenu
  417. menu "Networking Support"
  418. config UCLIBC_HAS_IPV6
  419. bool "IP version 6 Support"
  420. default n
  421. help
  422. If you want to include support for the next version of the Internet
  423. Protocol (IP version 6) then answer Y.
  424. Most people should answer N.
  425. config UCLIBC_HAS_RPC
  426. bool "Remote Procedure Call (RPC) support"
  427. default n
  428. help
  429. If you want to include RPC support, enable this. RPC is rarely used
  430. for anything except for the NFS filesystem. Unless you plan to use NFS,
  431. you can probably leave this set to N and save some space. If you need
  432. to use NFS then you should answer Y.
  433. config UCLIBC_HAS_FULL_RPC
  434. bool "Full RPC support"
  435. depends on UCLIBC_HAS_RPC
  436. default y if !HAVE_SHARED
  437. help
  438. Normally we enable just enough RPC support for things like rshd and
  439. nfs mounts to work. If you find you need the rest of the RPC stuff,
  440. then enable this option. Most people can safely answer N.
  441. config UCLIBC_HAS_REENTRANT_RPC
  442. bool "Reentrant RPC support"
  443. depends on UCLIBC_HAS_RPC
  444. default y if !HAVE_SHARED
  445. help
  446. Most packages utilize the normal (non-reentrant) RPC functions, but
  447. some (like exportfs from nfs-utils) need these reentrant versions.
  448. Most people can safely answer N.
  449. endmenu
  450. menu "String and Stdio Support"
  451. config UCLIBC_HAS_STRING_GENERIC_OPT
  452. bool "Use glibc generic string functions"
  453. default y
  454. help
  455. Answer Y to use the (tweaked) glibc generic string functions.
  456. In general, they are faster (but 3-5K larger) than the base
  457. uClibc string functions which are optimized solely for size.
  458. Many people will answer Y.
  459. config UCLIBC_HAS_STRING_ARCH_OPT
  460. bool "Use arch-specific string functions"
  461. default y
  462. help
  463. Answer Y to use the arch-specific string functions instead of the
  464. base uClibc versions, which are optimized exclusively for size.
  465. Most people will answer Y, as this has been default behavior
  466. for some time.
  467. config UCLIBC_HAS_CTYPE_TABLES
  468. bool "Use Table Versions Of 'ctype.h' Functions."
  469. default y
  470. help
  471. Answer Y to use table versions of the 'ctype.h' functions.
  472. While the non-table versions are often smaller when building
  473. staticly linked apps, they work only in stub locale mode.
  474. Most people will answer Y.
  475. config UCLIBC_HAS_CTYPE_SIGNED
  476. bool "Support Signed Characters In 'ctype.h' Functions."
  477. depends UCLIBC_HAS_CTYPE_TABLES
  478. default y
  479. help
  480. Answer Y to enable support for passing signed char values to
  481. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  482. these functions are only defined for unsigned char values and
  483. EOF. However, glibc allows negative signed char values as well
  484. in order to support 'broken old programs'.
  485. Most people will answer Y.
  486. choice
  487. prompt "ctype argument checking"
  488. depends UCLIBC_HAS_CTYPE_TABLES
  489. default UCLIBC_HAS_CTYPE_UNSAFE
  490. help
  491. Please select the invalid arg behavior you want for the 'ctype' functions.
  492. The 'ctype' functions are now implemented using table lookups, with
  493. the arg being the index. This can result in incorrect memory accesses
  494. or even segfaults for args outside of the allowed range.
  495. NOTE: This only affects the 'ctype' _functions_. It does not affect
  496. the macro implementations.
  497. config UCLIBC_HAS_CTYPE_UNSAFE
  498. bool "Do not check -- unsafe"
  499. config UCLIBC_HAS_CTYPE_CHECKED
  500. bool "Detect and handle appropriately"
  501. config UCLIBC_HAS_CTYPE_ENFORCED
  502. bool "Issue a diagnostic and abort()"
  503. endchoice
  504. config UCLIBC_HAS_WCHAR
  505. bool "Wide Character Support"
  506. default n
  507. help
  508. Answer Y to enable wide character support. This will make uClibc
  509. much larger. It is also currently required for locale support.
  510. Most people will answer N.
  511. config UCLIBC_HAS_LOCALE
  512. bool "Locale Support"
  513. select UCLIBC_HAS_WCHAR
  514. select UCLIBC_HAS_CTYPE_TABLES
  515. default n
  516. help
  517. uClibc now has full ANSI/ISO C99 locale support (except for
  518. wcsftime() and collating items in regex). Be aware that enabling
  519. this option will make uClibc much larger.
  520. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  521. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  522. uClibc by around 300k. You can reduce this size by building your own
  523. custom set of locate data (see extra/locale/LOCALES for details).
  524. uClibc's locale support is still under development. For example,
  525. codesets using shift states are not currently supported. Support is
  526. planned in the next iteration of locale support.
  527. Answer Y to enable locale support. Most people will answer N.
  528. config UCLIBC_PREGENERATED_LOCALE_DATA
  529. bool "Use Pre-generated Locale Data"
  530. depends on UCLIBC_HAS_LOCALE
  531. default n
  532. help
  533. If you are selective and only want locale data for a few particular
  534. locales, or you enjoy pain, or you are a rabid do-it-yourself sort of
  535. person, you can turn this option off and manually walk through the
  536. mostly undocumented procedure needed to generate your own locale
  537. data.
  538. Mere mortals will answer Y and use the default set of pregenerated
  539. locale data, which supports 169 UTF-8 locales, and 144 locales for
  540. other codesets (for the complete list see extra/locale/LOCALES).
  541. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  542. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  543. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  544. default n
  545. help
  546. If you would like the build process to use 'wget' to automatically
  547. download the pregenerated locale data, enable this option. Otherwise
  548. you will need to obtain the locale data yourself from:
  549. http://www.uclibc.org/downloads/uClibc-locale-030818.tgz
  550. and place the uClibc-locale-030818.tgz tarball in the extra/locale/
  551. directory.
  552. Go ahead and make life easy for yourself... Answer Y.
  553. config UCLIBC_HAS_XLOCALE
  554. bool "Extended Locale Support (experimental/incomplete)"
  555. depends on UCLIBC_HAS_LOCALE
  556. default n
  557. help
  558. Answer Y to enable extended locale support similar to that provided
  559. by glibc. This is primarily intended to support libstd++ functionality.
  560. However, it also allows thread-specific locale selection via uselocale().
  561. Most people will answer N.
  562. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  563. bool "Support hexadecimal float notation"
  564. depends UCLIBC_HAS_CTYPE_TABLES
  565. depends on UCLIBC_HAS_FLOATS
  566. default n
  567. help
  568. Answer Y to enable support for hexadecimal float notation in the
  569. (wchar and) char string to floating point conversion functions, as
  570. well as support for the %a and %A conversion specifiers in the
  571. *printf() and *scanf() functions.
  572. Most people will answer N.
  573. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  574. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  575. depends on UCLIBC_HAS_LOCALE
  576. depends on UCLIBC_HAS_FLOATS
  577. default n
  578. help
  579. Answer Y to enable support for glibc's \"'\" flag for allowing locale-specific
  580. digit grouping in base 10 integer conversions and appropriate floating point
  581. conversions in the *printf() and *scanf() functions.
  582. Most people will answer N.
  583. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  584. bool "Do not require digit grouping when the \"'\" flag is specified"
  585. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  586. default y
  587. help
  588. Answer Y to make digit grouping optional when the \"'\" flag is specified.
  589. This is the standard glibc behavior. If the initial string of digits
  590. exceeds the maximum group number, the input will be treated as a normal
  591. non-grouped number.
  592. Most people will answer N.
  593. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  594. bool "Support glibc's register_printf_function() (glibc-compat)"
  595. depends on !USE_OLD_VFPRINTF
  596. default n
  597. help
  598. Answer Y to support glibc's register_printf_function() to allow an
  599. application to add its own printf conversion specifiers.
  600. NOTE: This implementation limits the number or registered specifiers to 10.
  601. NOTE: This implementation requires new conversion specifiers to be ASCII
  602. characters (0-0x7f). This is to avoid problems with processing
  603. format strings in locales with different multibyte conversions.
  604. Most people will answer N.
  605. config USE_OLD_VFPRINTF
  606. bool "Use the old vfprintf implementation"
  607. depends on !UCLIBC_HAS_WCHAR
  608. default n
  609. help
  610. Set to true to use the old vfprintf instead of the new. This is roughly
  611. C89 compliant with some extensions, and is much smaller. However, it does
  612. not support wide chars, positional args, or glibc custom printf specifiers.
  613. Most people will answer N.
  614. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  615. int "Maximum number of positional args. Either 0 or >= 9."
  616. depends on !USE_OLD_VFPRINTF
  617. default 9
  618. help
  619. Set the maximum number of positional args supported by the printf/scanf
  620. functions. The Single Unix Specification Version 3 requires a minimum
  621. value of 9. Setting this to a value lower than 9 will disable positional
  622. arg support and cause the NL_ARGMAX macro in limits.h to be #undef'd.
  623. WARNING! The workspace to support positional args is currently allocated
  624. on the stack. You probably don't want to set this to too high a value.
  625. Most people will answer 9.
  626. config UCLIBC_HAS_SCANF_GLIBC_A_FLAG
  627. bool "Support glibc's 'a' flag for scanf string conversions (not implemented)"
  628. default n
  629. help
  630. NOTE!!! Currently Not Implemented!!! Just A Place Holder!! NOTE!!!
  631. NOTE!!! Conflicts with an ANSI/ISO C99 scanf flag!! NOTE!!!
  632. Answer Y to enable support for glibc's 'a' flag for the scanf string
  633. conversions '%s', '%[', '%ls', '%l[', and '%S'. This is used to
  634. auto-allocate sufficient memory to hold the data retrieved.
  635. Most people will answer N.
  636. choice
  637. prompt "Stdio buffer size"
  638. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  639. help
  640. Please select a value for BUFSIZ. This will be used by the
  641. stdio subsystem as the default buffer size for a file, and
  642. affects fopen(), setvbuf(), etc.
  643. NOTE: Setting this to 'none' will disable buffering completely.
  644. However, BUFSIZ will still be defined in stdio.h as 256 because
  645. many applications use this value.
  646. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  647. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  648. depends !UCLIBC_HAS_WCHAR
  649. config UCLIBC_HAS_STDIO_BUFSIZ_256
  650. bool "256 (minimum ANSI/ISO C99 value)"
  651. config UCLIBC_HAS_STDIO_BUFSIZ_512
  652. bool "512"
  653. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  654. bool "1024"
  655. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  656. bool "2048"
  657. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  658. bool "4096"
  659. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  660. bool "8192"
  661. # If you add more choices, you will need to update uClibc_stdio.h.
  662. endchoice
  663. choice
  664. prompt "Stdio builtin buffer size (uClibc-specific)"
  665. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  666. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  667. help
  668. When a FILE is created with fopen(), an attempt is made to allocate
  669. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  670. succeed but the FILE will be unbuffered.
  671. This option adds a small amount of space to each FILE to act as an
  672. emergency buffer in the event of a buffer allocation failure.
  673. Most people will answer None.
  674. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  675. bool "None"
  676. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  677. bool "4"
  678. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  679. bool "8"
  680. # If you add more choices, you will need to update uClibc_stdio.h.
  681. endchoice
  682. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  683. bool "Attemt to shutdown stdio subsystem when abort() is called."
  684. default n
  685. help
  686. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was a behavioral
  687. change made in SUSv3. Previously, abort() was required to have the affect of
  688. fclose() on all open streams. The wording has been changed to "may" from "shall".
  689. Most people will answer N.
  690. config UCLIBC_HAS_STDIO_GETC_MACRO
  691. bool "Provide a macro version of getc()"
  692. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  693. default y
  694. help
  695. Provide a macro version of getc().
  696. Most people will answer Y.
  697. config UCLIBC_HAS_STDIO_PUTC_MACRO
  698. bool "Provide a macro version of putc()"
  699. depends !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  700. default y
  701. help
  702. Provide a macro version of putc().
  703. Most people will answer Y.
  704. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  705. bool "Support auto-r/w transition"
  706. default y
  707. help
  708. Answer Y to enable the stdio subsystem to automaticly transition
  709. between reading and writing. This relaxes the ANSI/ISO C99 requirement:
  710. When a file is opened with update mode ('+' as the second or third character
  711. in the list of mode argument values), both input and output may be performed
  712. on the associated stream. However, output shall not be directly followed by
  713. input without an intervening call to the fflush function or to a file
  714. positioning function (fseek, fsetpos, or rewind), and input shall not be
  715. directly followed by output without an intervening call to a file positioning
  716. function, unless the input operation encounters end­of­file.
  717. Most people will answer Y.
  718. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  719. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  720. depends on UCLIBC_HAS_LFS
  721. default n
  722. help
  723. Answer Y to enable a uClibc-specific extension to allow passing an
  724. additional 'F' flag in the mode string for fopen() to specify that
  725. the file should be open()ed with the O_LARGEFILE flag set.
  726. Most people will answer N.
  727. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  728. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  729. default n
  730. help
  731. Answer Y to support a glibc extension to allow passing
  732. additional 'x' flag in the mode string for fopen() to specify that
  733. the file should be open()ed with the O_EXCL flag set.
  734. Most people will answer N.
  735. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  736. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  737. default n
  738. help
  739. Answer Y to support the glibc 'custom stream' extension functions
  740. fmemopen(), open_memstream(), and fopencookie().
  741. NOTE: There are some minor differences regarding seeking behavior.
  742. Most people will answer N.
  743. config UCLIBC_HAS_PRINTF_M_SPEC
  744. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  745. default n
  746. help
  747. Answer Y to support a glibc extension to interpret '%m' in printf
  748. format strings as an instruction to output the error message string
  749. (as generated by strerror) corresponding to the current value of 'errno'.
  750. Most people will answer N.
  751. config UCLIBC_HAS_ERRNO_MESSAGES
  752. bool "Include the errno message text in the library"
  753. default y
  754. help
  755. Answer Y if you want to include the errno message text in the
  756. library. This adds about 3K to the library, but enables strerror()
  757. to generate text other than 'Unknown error <number>'.
  758. Most people will answer Y.
  759. config UCLIBC_HAS_SYS_ERRLIST
  760. bool "Support sys_errlist[] (obsolete-compat)"
  761. depends on UCLIBC_HAS_ERRNO_MESSAGES
  762. default n
  763. help
  764. Answer Y if you want to support the obsolete sys_errlist[].
  765. This adds about 0.5k to the library, except for the mips
  766. arch where it adds over 4K.
  767. WARNING! In the future, support for sys_errlist[] may be unavailable
  768. in at least some configurations. In fact, it may be removed altogether.
  769. Most people will answer N.
  770. config UCLIBC_HAS_SIGNUM_MESSAGES
  771. bool "Include the signum message text in the library"
  772. default y
  773. help
  774. Answer Y if you want to include the signum message text in the
  775. library. This adds about 0.5K to the library, but enables strsignal()
  776. to generate text other than 'Unknown signal <number>'.
  777. Most people will answer Y.
  778. config UCLIBC_HAS_SYS_SIGLIST
  779. bool "Support sys_siglist[] (bsd-compat)"
  780. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  781. default n
  782. help
  783. Answer Y if you want to support sys_siglist[].
  784. WARNING! In the future, support for sys_siglist[] may be unavailable
  785. in at least some configurations. In fact, it may be removed altogether.
  786. Most people will answer N.
  787. config UCLIBC_HAS_GETTEXT_AWARENESS
  788. bool "Include gettext awareness"
  789. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  790. default n
  791. help
  792. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  793. Answer Y if you want to include weak stub gettext support and
  794. make the *strerror*() and strsignal() functions gettext-aware.
  795. Currently, to get functional gettext functionality you will need
  796. to use gnu gettext.
  797. Most people will answer N.
  798. config UCLIBC_HAS_GNU_GETOPT
  799. bool "Support gnu getopt"
  800. default y
  801. help
  802. Answer Y if you want to include full gnu getopt() instead of a
  803. (much smaller) SUSv3 compatible getopt().
  804. Most people will answer Y.
  805. endmenu
  806. menu "Big and Tall"
  807. config UCLIBC_HAS_REGEX
  808. bool "Regular Expression Support"
  809. default y
  810. help
  811. POSIX regular expression code is really big -- 27k all by itself.
  812. If you don't use regular expressions, turn this off and save space.
  813. Of course, if you only staticly link, leave this on, since it will
  814. only be included in your apps if you use regular expressions.
  815. config UCLIBC_HAS_WORDEXP
  816. bool "Support the wordexp() interface"
  817. default n
  818. help
  819. The SuSv3 wordexp() interface performs word expansions per the Shell
  820. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  821. intended for use by applications that want to implement all of the
  822. standard Bourne shell expansions on input data.
  823. This interface is rarely used, and very large. Unless you have a
  824. pressing need for wordexp(), you should probably answer N.
  825. config UCLIBC_HAS_FTW
  826. bool "Support the ftw() and nftw() interfaces"
  827. default n
  828. help
  829. The SuSv3 ftw() and nftw() interfaces are used to recursively descend
  830. directory paths while repeatedly calling a function.
  831. This interface is rarely used, and adds around 4.5k. Unless you have
  832. a pressing need for ftw() or nftw(), you should probably answer N.
  833. config UCLIBC_HAS_GLOB
  834. bool "Support the glob() interface"
  835. default y
  836. help
  837. The glob interface is somewhat large (weighing in at about 4k). It
  838. is used fairly often, but is an option since people wanting to go for
  839. absolute minimum size may wish to omit it.
  840. Most people will answer Y.
  841. endmenu
  842. menu "Library Installation Options"
  843. config SHARED_LIB_LOADER_PREFIX
  844. string "Shared library loader path"
  845. depends on HAVE_SHARED
  846. default "$(DEVEL_PREFIX)/lib"
  847. help
  848. When using shared libraries, this path is the location where the
  849. shared library will be invoked. This value will be compiled into
  850. every binary compiled with uClibc.
  851. For a typical target system this should be set to "/lib", such that
  852. 'make install' will install /lib/ld-uClibc.so.0.
  853. BIG FAT WARNING:
  854. If you do not have a shared library loader with the correct name
  855. sitting in the directory this points to, your binaries will not
  856. run.
  857. config RUNTIME_PREFIX
  858. string "uClibc runtime library directory"
  859. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  860. help
  861. RUNTIME_PREFIX is the directory into which the uClibc runtime
  862. libraries will be installed. The result will look something
  863. like the following:
  864. $(RUNTIME_PREFIX)/
  865. lib/ <contains all runtime libraries>
  866. usr/bin/ldd <the ldd utility program>
  867. sbin/ldconfig <the ldconfig utility program>
  868. This value is used by the 'make install' Makefile target. Since this
  869. directory is compiled into the shared library loader, you will need to
  870. recompile uClibc if you change this value...
  871. For a typical target system this should be set to "/", such that
  872. 'make install' will install /lib/libuClibc-<VERSION>.so
  873. config DEVEL_PREFIX
  874. string "uClibc development environment directory"
  875. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  876. help
  877. DEVEL_PREFIX is the directory into which the uClibc development
  878. environment will be installed. The result will look something
  879. like the following:
  880. $(DEVEL_PREFIX)/
  881. lib/ <contains static libs>
  882. include/ <Where all the header files go>
  883. This value is used by the 'make install' Makefile target when
  884. installing a uClibc development environment.
  885. For a typical target system this should be set to "/usr", such that
  886. 'make install' will install /usr/include/<header files>.
  887. endmenu
  888. menu "Security options"
  889. config UCLIBC_BUILD_PIE
  890. bool "Build utilities as ET_DYN/PIE executables"
  891. depends on HAVE_SHARED
  892. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  893. select FORCE_SHAREABLE_TEXT_SEGMENTS
  894. default y
  895. help
  896. If you answer Y here, ldd and iconv are built as ET_DYN/PIE executables.
  897. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  898. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  899. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so all
  900. libraries have to be built with -fPIC or -fpic, and all assembler
  901. functions must be written as position independent code (PIC).
  902. config HAVE_NO_SSP
  903. bool
  904. default n
  905. config UCLIBC_HAS_SSP
  906. bool "Support for propolice smashing stack protector"
  907. depends on !HAVE_NO_SSP
  908. default n
  909. help
  910. Add propolice smashing stack protector to the library.
  911. This requires a patched version of GCC or GCC 4.1, supporting the
  912. -fstack-protector[-all] options, with the __guard and
  913. __stack_smash_handler, respectively __stack_chk_guard and
  914. __stack_chk_fail functions removed from libgcc.
  915. These functions are added to libc instead.
  916. More information at:
  917. <http://www.research.ibm.com/trl/projects/security/ssp/>
  918. Most people will answer N.
  919. config SSP_QUICK_CANARY
  920. bool "Use simple guard values without accessing /dev/urandom"
  921. depends on UCLIBC_HAS_SSP
  922. default n
  923. help
  924. Use gettimeofday(2) to define the __guard without accessing
  925. /dev/urandom.
  926. WARNING: This makes smashing stack protector vulnerable to timing
  927. attacks.
  928. Most people will answer N.
  929. choice
  930. prompt "Propolice protection blocking signal"
  931. depends on UCLIBC_HAS_SSP
  932. default PROPOLICE_BLOCK_ABRT if ! DODEBUG
  933. default PROPOLICE_BLOCK_SEGV if DODEBUG
  934. help
  935. "abort" use SIGABRT to block offending programs.
  936. This is the default implementation.
  937. "segfault" use SIGSEGV to block offending programs.
  938. Use this for debugging.
  939. If unsure, answer "abort".
  940. config PROPOLICE_BLOCK_ABRT
  941. bool "abort"
  942. config PROPOLICE_BLOCK_SEGV
  943. bool "segfault"
  944. endchoice
  945. config UCLIBC_BUILD_SSP
  946. bool "Build uClibc with propolice protection"
  947. depends on UCLIBC_HAS_SSP
  948. default n
  949. help
  950. Build all libraries and executables with propolice protection enabled.
  951. config UCLIBC_BUILD_RELRO
  952. bool "Build uClibc with RELRO"
  953. depends on HAVE_SHARED
  954. default y
  955. help
  956. Build all libraries and executables with -z relro.
  957. config UCLIBC_BUILD_NOW
  958. bool "Build uClibc with NOW"
  959. depends on HAVE_SHARED
  960. default y
  961. help
  962. Build all libraries and executables with -z now.
  963. config UCLIBC_BUILD_NOEXECSTACK
  964. bool "Build uClibc with noexecstack marking"
  965. default y
  966. help
  967. Mark all assembler files as noexecstack. This will result in marking
  968. all libraries and executables built against uClibc not requiring
  969. executable stack.
  970. endmenu
  971. menu "uClibc development/debugging options"
  972. config CROSS_COMPILER_PREFIX
  973. string "Cross-compiling toolchain prefix"
  974. default ""
  975. help
  976. The prefix used to execute your cross-compiling toolchain. For
  977. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  978. then enter 'arm-linux-uclibc-' here.
  979. config DODEBUG
  980. bool "Build uClibc with debugging symbols"
  981. select PTHREADS_DEBUG_SUPPORT if UCLIBC_HAS_THREADS
  982. default n
  983. help
  984. Say Y here if you wish to compile uClibc with debugging symbols.
  985. This will allow you to use a debugger to examine uClibc internals
  986. while applications are running. This increases the size of the
  987. library considerably and should only be used when doing development.
  988. If you are doing development and want to debug uClibc, answer Y.
  989. Otherwise, answer N.
  990. config DODEBUG_PT
  991. bool "Build pthread with debugging output"
  992. depends on UCLIBC_HAS_THREADS
  993. default n
  994. help
  995. Enable debug output in libpthread. This is only useful when doing
  996. development in libpthread itself.
  997. Otherwise, answer N.
  998. config DOASSERTS
  999. bool "Build uClibc with run-time assertion testing"
  1000. default n
  1001. help
  1002. Say Y here to include runtime assertion tests.
  1003. This enables runtime assertion testing in some code, which can
  1004. increase the size of the library and incur runtime overhead.
  1005. If you say N, then this testing will be disabled.
  1006. config SUPPORT_LD_DEBUG
  1007. bool "Build the shared library loader with debugging support"
  1008. depends on HAVE_SHARED
  1009. default n
  1010. help
  1011. Answer Y here to enable all the extra code needed to debug the uClibc
  1012. native shared library loader. The level of debugging noise that is
  1013. generated depends on the LD_DEBUG environment variable... Just set
  1014. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1015. debug your application. Diagnostic messages will then be printed to
  1016. the stderr.
  1017. For now these debugging tokens are available:
  1018. detail provide more information for some options
  1019. move display copy processing
  1020. symbols display symbol table processing
  1021. reloc display relocation processing; detail shows the relocation patch
  1022. nofixups never fixes up jump relocations
  1023. bindings displays the resolve processing (function calls); detail shows the relocation patch
  1024. all Enable everything!
  1025. The additional environment variable:
  1026. LD_DEBUG_OUTPUT=file
  1027. redirects the diagnostics to an output file created using
  1028. the specified name and the process id as a suffix.
  1029. An excellent start is simply:
  1030. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1031. or to log everything to a file named 'logfile', try this
  1032. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1033. If you are doing development and want to debug uClibc's shared library
  1034. loader, answer Y. Mere mortals answer N.
  1035. config SUPPORT_LD_DEBUG_EARLY
  1036. bool "Build the shared library loader with early debugging support"
  1037. depends on HAVE_SHARED
  1038. default n
  1039. help
  1040. Answer Y here to if you find the uClibc shared library loader is
  1041. crashing or otherwise not working very early on. This is typical
  1042. only when starting a new port when you haven't figured out how to
  1043. properly get the values for argc, argv, environ, etc. This method
  1044. allows a degree of visibility into the very early shared library
  1045. loader initialization process. If you are doing development and want
  1046. to debug the uClibc shared library loader early initialization,
  1047. answer Y. Mere mortals answer N.
  1048. config UCLIBC_MALLOC_DEBUGGING
  1049. bool "Build malloc with debugging support"
  1050. depends MALLOC
  1051. default n
  1052. help
  1053. Answer Y here to compile extra debugging support code into malloc.
  1054. Malloc debugging output may then be enabled at runtime using the
  1055. MALLOC_DEBUG environment variable.
  1056. The value of MALLOC_DEBUG should be an integer, which is interpreted as
  1057. a bitmask with the following bits:
  1058. 1 - do extra consistency checking
  1059. 2 - output messages for malloc/free calls and OS allocation calls
  1060. 4 - output messages for the `MMB' layer
  1061. 8 - output messages for internal malloc heap manipulation calls
  1062. Because this increases the size of malloc appreciably (due to strings
  1063. etc), you should say N unless you need to debug a malloc problem.
  1064. config WARNINGS
  1065. string "Compiler Warnings"
  1066. default "-Wall"
  1067. help
  1068. Set this to the set of gcc warnings you wish to see while compiling.
  1069. config DOMULTI
  1070. bool "Compile all sources at once into an object"
  1071. default n
  1072. help
  1073. Set this to compile all sources at once into an object (IMA).
  1074. config UCLIBC_MJN3_ONLY
  1075. bool "Manuel's hidden warnings"
  1076. default n
  1077. help
  1078. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  1079. Most people will answer N.
  1080. endmenu