Config.in 44 KB

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