Config.in 42 KB

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