Config.in 46 KB

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