Config.in 48 KB

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