Config.in 77 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see extra/config/Kconfig-language.txt
  4. #
  5. mainmenu "uClibc $VERSION C Library Configuration"
  6. config DESIRED_TARGET_ARCH
  7. string
  8. option env="ARCH"
  9. config VERSION
  10. string
  11. option env="VERSION"
  12. choice
  13. prompt "Target Architecture"
  14. default TARGET_alpha if DESIRED_TARGET_ARCH = "alpha"
  15. default TARGET_arc if DESIRED_TARGET_ARCH = "arc"
  16. default TARGET_arm if DESIRED_TARGET_ARCH = "arm"
  17. default TARGET_avr32 if DESIRED_TARGET_ARCH = "avr32"
  18. default TARGET_bfin if DESIRED_TARGET_ARCH = "bfin"
  19. default TARGET_cris if DESIRED_TARGET_ARCH = "cris"
  20. default TARGET_e1 if DESIRED_TARGET_ARCH = "e1"
  21. default TARGET_frv if DESIRED_TARGET_ARCH = "frv"
  22. default TARGET_h8300 if DESIRED_TARGET_ARCH = "h8300"
  23. default TARGET_hppa if DESIRED_TARGET_ARCH = "hppa"
  24. default TARGET_i386 if DESIRED_TARGET_ARCH = "i386"
  25. default TARGET_i960 if DESIRED_TARGET_ARCH = "i960"
  26. default TARGET_ia64 if DESIRED_TARGET_ARCH = "ia64"
  27. default TARGET_m68k if DESIRED_TARGET_ARCH = "m68k"
  28. default TARGET_metag if DESIRED_TARGET_ARCH = "metag"
  29. default TARGET_microblaze if DESIRED_TARGET_ARCH = "microblaze"
  30. default TARGET_mips if DESIRED_TARGET_ARCH = "mips"
  31. default TARGET_nios if DESIRED_TARGET_ARCH = "nios"
  32. default TARGET_nios2 if DESIRED_TARGET_ARCH = "nios2"
  33. default TARGET_powerpc if DESIRED_TARGET_ARCH = "powerpc"
  34. default TARGET_sh if DESIRED_TARGET_ARCH = "sh"
  35. default TARGET_sh64 if DESIRED_TARGET_ARCH = "sh64"
  36. default TARGET_sparc if DESIRED_TARGET_ARCH = "sparc"
  37. default TARGET_v850 if DESIRED_TARGET_ARCH = "v850"
  38. default TARGET_vax if DESIRED_TARGET_ARCH = "vax"
  39. default TARGET_x86_64 if DESIRED_TARGET_ARCH = "x86_64"
  40. default TARGET_xtensa if DESIRED_TARGET_ARCH = "xtensa"
  41. help
  42. The architecture of your target.
  43. config TARGET_alpha
  44. bool "alpha"
  45. config TARGET_arc
  46. bool "arc"
  47. config TARGET_arm
  48. bool "arm"
  49. config TARGET_avr32
  50. bool "avr32"
  51. config TARGET_bfin
  52. bool "bfin"
  53. config TARGET_c6x
  54. bool "c6x"
  55. config TARGET_cris
  56. bool "cris"
  57. config TARGET_e1
  58. bool "e1 (BROKEN)"
  59. config TARGET_frv
  60. bool "frv (BROKEN)"
  61. config TARGET_h8300
  62. bool "h8300 (BROKEN)"
  63. config TARGET_hppa
  64. bool "hppa"
  65. config TARGET_i386
  66. bool "i386"
  67. config TARGET_i960
  68. bool "i960 (BROKEN)"
  69. config TARGET_ia64
  70. bool "ia64"
  71. config TARGET_m68k
  72. bool "m68k"
  73. config TARGET_metag
  74. bool "metag"
  75. config TARGET_microblaze
  76. bool "microblaze"
  77. config TARGET_mips
  78. bool "mips"
  79. config TARGET_nios
  80. bool "nios"
  81. config TARGET_nios2
  82. bool "nios2"
  83. config TARGET_powerpc
  84. bool "powerpc"
  85. config TARGET_sh
  86. bool "superh"
  87. config TARGET_sh64
  88. bool "sh64"
  89. config TARGET_sparc
  90. bool "sparc"
  91. config TARGET_v850
  92. bool "v850 (BROKEN)"
  93. config TARGET_vax
  94. bool "vax"
  95. config TARGET_x86_64
  96. bool "x86_64"
  97. config TARGET_xtensa
  98. bool "xtensa"
  99. endchoice
  100. menu "Target Architecture Features and Options"
  101. if TARGET_alpha
  102. source "extra/Configs/Config.alpha"
  103. endif
  104. if TARGET_arm
  105. source "extra/Configs/Config.arm"
  106. endif
  107. if TARGET_avr32
  108. source "extra/Configs/Config.avr32"
  109. endif
  110. if TARGET_bfin
  111. source "extra/Configs/Config.bfin"
  112. endif
  113. if TARGET_cris
  114. source "extra/Configs/Config.cris"
  115. endif
  116. if TARGET_e1
  117. source "extra/Configs/Config.e1"
  118. endif
  119. if TARGET_frv
  120. source "extra/Configs/Config.frv"
  121. endif
  122. if TARGET_h8300
  123. source "extra/Configs/Config.h8300"
  124. endif
  125. if TARGET_hppa
  126. source "extra/Configs/Config.hppa"
  127. endif
  128. if TARGET_i386
  129. source "extra/Configs/Config.i386"
  130. endif
  131. if TARGET_i960
  132. source "extra/Configs/Config.i960"
  133. endif
  134. if TARGET_ia64
  135. source "extra/Configs/Config.ia64"
  136. endif
  137. if TARGET_m68k
  138. source "extra/Configs/Config.m68k"
  139. endif
  140. if TARGET_metag
  141. source "extra/Configs/Config.metag"
  142. endif
  143. if TARGET_nios
  144. source "extra/Configs/Config.nios"
  145. endif
  146. if TARGET_nios2
  147. source "extra/Configs/Config.nios2"
  148. endif
  149. if TARGET_microblaze
  150. source "extra/Configs/Config.microblaze"
  151. endif
  152. if TARGET_mips
  153. source "extra/Configs/Config.mips"
  154. endif
  155. if TARGET_powerpc
  156. source "extra/Configs/Config.powerpc"
  157. endif
  158. if TARGET_sh
  159. source "extra/Configs/Config.sh"
  160. endif
  161. if TARGET_sh64
  162. source "extra/Configs/Config.sh64"
  163. endif
  164. if TARGET_sparc
  165. source "extra/Configs/Config.sparc"
  166. endif
  167. if TARGET_v850
  168. source "extra/Configs/Config.v850"
  169. endif
  170. if TARGET_vax
  171. source "extra/Configs/Config.vax"
  172. endif
  173. if TARGET_x86_64
  174. source "extra/Configs/Config.x86_64"
  175. endif
  176. if TARGET_xtensa
  177. source "extra/Configs/Config.xtensa"
  178. endif
  179. if TARGET_c6x
  180. source "extra/Configs/Config.c6x"
  181. endif
  182. if TARGET_arc
  183. source "extra/Configs/Config.arc"
  184. endif
  185. config TARGET_SUBARCH
  186. string
  187. default "e500" if CONFIG_E500
  188. default "classic" if CONFIG_CLASSIC
  189. default "sh4" if CONFIG_SH4
  190. default "" if CONFIG_386
  191. default "i486" if CONFIG_486
  192. default "i586" if CONFIG_586
  193. default "i686" if CONFIG_686
  194. default "arcv2" if CONFIG_ARC_CPU_HS
  195. default ""
  196. source "extra/Configs/Config.in.arch"
  197. endmenu
  198. menu "General Library Settings"
  199. config HAVE_NO_PIC
  200. bool
  201. config DOPIC
  202. bool "Generate only Position Independent Code (PIC)"
  203. default y
  204. depends on !HAVE_NO_PIC
  205. help
  206. If you wish to build all of uClibc as PIC objects, then answer Y here.
  207. If you are unsure, then you should answer N.
  208. config ARCH_HAS_NO_SHARED
  209. bool
  210. config ARCH_HAS_NO_LDSO
  211. bool
  212. select ARCH_HAS_NO_SHARED
  213. config ARCH_HAS_UCONTEXT
  214. bool
  215. config HAVE_SHARED
  216. bool "Enable shared libraries"
  217. depends on !ARCH_HAS_NO_SHARED
  218. default y
  219. help
  220. If you wish to build uClibc with support for shared libraries then
  221. answer Y here. If you only want to build uClibc as a static library,
  222. then answer N.
  223. config FORCE_SHAREABLE_TEXT_SEGMENTS
  224. bool "Only load shared libraries which can share their text segment"
  225. depends on HAVE_SHARED
  226. select DOPIC
  227. help
  228. If you answer Y here, the uClibc native shared library loader will
  229. only load shared libraries, which do not need to modify any
  230. non-writable segments. These libraries haven't set the DT_TEXTREL
  231. tag in the dynamic section (==> objdump).
  232. All your libraries must be compiled with -fPIC or -fpic, and all
  233. assembler function must be written as position independent code (PIC).
  234. Enabling this option will make uClibc's shared library loader a
  235. little bit smaller and guarantee that no memory will be wasted by
  236. badly coded shared libraries.
  237. config LDSO_LDD_SUPPORT
  238. bool "Native 'ldd' support"
  239. depends on HAVE_SHARED
  240. default y
  241. help
  242. Enable all the code needed to support traditional ldd,
  243. which executes the shared library loader to resolve all dependencies
  244. and then provide a list of shared libraries that are required for an
  245. application to function. Disabling this option will make uClibc's
  246. shared library loader a little bit smaller.
  247. Most people will answer Y.
  248. config LDSO_CACHE_SUPPORT
  249. bool "Enable library loader cache (ld.so.conf)"
  250. depends on HAVE_SHARED
  251. default y
  252. help
  253. Enable this to make use of /etc/ld.so.conf, the shared library loader
  254. cache configuration file to support for non-standard library paths.
  255. After updating this file, it is necessary to run 'ldconfig' to update
  256. the /etc/ld.so.cache shared library loader cache file.
  257. config LDSO_PRELOAD_ENV_SUPPORT
  258. bool "Enable library loader LD_PRELOAD environment"
  259. depends on HAVE_SHARED
  260. default y
  261. help
  262. Enable this to make use of LD_PRELOAD environment variable.
  263. A whitespace-separated list of additional, user-specified, ELF shared
  264. libraries to be loaded before all others. This can be used to
  265. selectively override functions in other shared libraries. For
  266. set-user-ID/set-group-ID ELF binaries, only libraries in the standard
  267. search directories that are also set-user-ID will be loaded.
  268. config LDSO_PRELOAD_FILE_SUPPORT
  269. bool "Enable library loader preload file (ld.so.preload)"
  270. depends on HAVE_SHARED
  271. help
  272. Enable this to make use of /etc/ld.so.preload. This file contains a
  273. whitespace separated list of shared libraries to be loaded before
  274. the program.
  275. config LDSO_BASE_FILENAME
  276. string "Shared library loader naming prefix"
  277. depends on HAVE_SHARED && (LDSO_CACHE_SUPPORT || LDSO_PRELOAD_FILE_SUPPORT)
  278. default "ld.so"
  279. help
  280. If you wish to support both uClibc and glibc on the same system, it
  281. is necessary to set this to something other than "ld.so" to avoid
  282. conflicts with glibc, which also uses "ld.so". This prevents both
  283. libraries from using the same /etc/ld.so.* files. If you wish to
  284. support both uClibc and glibc on the same system then you should set
  285. this to "ld-uClibc.so".
  286. Most people will leave this set to the default of "ld.so".
  287. WARNING: Changing the default prefix could cause problems with
  288. binutils' ld !
  289. config LDSO_STANDALONE_SUPPORT
  290. bool "Dynamic linker stand-alone mode support"
  291. depends on HAVE_SHARED
  292. help
  293. The dynamic linker can be run either indirectly through running some
  294. dynamically linked program or library (in which case no command line
  295. options to the dynamic linker can be passed and, in the ELF case, the
  296. dynamic linker which is stored in the .interp section of the program
  297. is executed) or directly by running:
  298. /lib/ld-uClibc.so.* [OPTIONS] [PROGRAM [ARGUMENTS]]
  299. Stand-alone execution is a prerequisite for adding prelink
  300. capabilities to uClibc dynamic linker, as well useful for testing an
  301. updated version of the dynamic linker without breaking the system.
  302. config LDSO_PRELINK_SUPPORT
  303. bool "Dynamic linker prelink support"
  304. depends on HAVE_SHARED
  305. select LDSO_STANDALONE_SUPPORT
  306. help
  307. The dynamic linker can be used in stand-alone mode by the prelink tool
  308. for prelinking ELF shared libraries and binaries to speed up startup
  309. time. It also is able to load and handle prelinked libraries and
  310. binaries at runtime.
  311. config UCLIBC_STATIC_LDCONFIG
  312. bool "Link ldconfig statically"
  313. depends on HAVE_SHARED
  314. default y
  315. help
  316. Enable this option to statically link the ldconfig binary.
  317. Making ldconfig static can be beneficial if you have a library
  318. problem and need to use ldconfig to recover. Sometimes it is
  319. preferable to instead keep the size of the system down, in which
  320. case you should disable this option.
  321. config LDSO_RUNPATH
  322. bool "Enable ELF RUNPATH tag support"
  323. depends on HAVE_SHARED
  324. default y if LDSO_CACHE_SUPPORT
  325. help
  326. ELF's may have dynamic RPATH/RUNPATH tags. These tags list paths
  327. which extend the library search paths. They are really only useful
  328. if a package installs libraries in non standard locations and
  329. ld.so.conf support is disabled.
  330. Usage of RUNPATH tags is not too common, so disabling this feature
  331. should be safe for most people.
  332. config LDSO_RUNPATH_OF_EXECUTABLE
  333. bool "Use executables RUNPATH/RPATH when searching for libraries."
  334. depends on LDSO_RUNPATH
  335. default n
  336. help
  337. Use the executables RUNPATH/RPATH to find to find libraries even
  338. though this behavour is not standard. Setting this option causes
  339. the uclibc dynamic linker behavour to match the glibc dynamic linker.
  340. config LDSO_SAFE_RUNPATH
  341. bool "Allow only RUNPATH beginning with /"
  342. depends on LDSO_RUNPATH
  343. default y
  344. help
  345. Allow only absolute path in RPATH/RUNPATH.
  346. config LDSO_SEARCH_INTERP_PATH
  347. bool "Add ldso path to lib search path"
  348. depends on HAVE_SHARED
  349. default y
  350. help
  351. The ldso is told where it is being executed from and can use that
  352. path to find related core libraries. This is useful by default,
  353. but can be annoying in a mixed development environment.
  354. i.e. if the ldso is run from /foo/boo/ldso.so, it will start its
  355. library search with /foo/boo/
  356. If unsure, simply say Y here.
  357. config LDSO_LD_LIBRARY_PATH
  358. bool "Add LD_LIBRARY_PATH to lib search path"
  359. depends on HAVE_SHARED
  360. default y
  361. help
  362. On hardened system it could be useful to disable the use of
  363. LD_LIBRARY_PATH environment variable (a colon-separated list of
  364. directories in which to search for ELF libraries at execution-time).
  365. If unsure, simply say Y here.
  366. config LDSO_NO_CLEANUP
  367. bool "Disable automatic unloading of dynamically loaded shared objects"
  368. depends on HAVE_SHARED
  369. help
  370. If you need complete allocation traces when debugging memory leaks
  371. using Valgrind in a process that dynamically loads shared objects,
  372. then answer Y here. Unlike glibc, uClibc unloads all dynamically
  373. loaded shared objects when a process exits, which prevents Valgrind
  374. from correctly resolving the symbols from the unloaded shared objects.
  375. Unless you know you need this, you should answer N.
  376. config UCLIBC_CTOR_DTOR
  377. bool "Support global constructors and destructors"
  378. default y
  379. help
  380. If you wish to build uClibc with support for global constructor
  381. (ctor) and global destructor (dtor) support, then answer Y here.
  382. When ctor/dtor support is enabled, binaries linked with uClibc must
  383. also be linked with crtbegin.o and crtend.o which are provided by gcc
  384. (the "*startfile:" and "*endfile:" settings in your gcc specs file
  385. may need to be adjusted to include these files). This support will
  386. also add a small amount of additional size to each binary compiled vs
  387. uClibc. If you will be using uClibc with C++, or if you need the gcc
  388. __attribute__((constructor)) and __attribute__((destructor)) to work,
  389. then you definitely want to answer Y here. If you don't need ctors
  390. or dtors and want your binaries to be as small as possible, then
  391. answer N.
  392. config LDSO_GNU_HASH_SUPPORT
  393. bool "Enable GNU hash style support"
  394. depends on HAVE_SHARED
  395. help
  396. Newest binutils support a new hash style named GNU-hash. The dynamic
  397. linker will use the new GNU-hash section (.gnu.hash) for symbol lookup
  398. if present into the ELF binaries, otherwise it will use the old SysV
  399. hash style (.hash). This ensures that it is completely backward
  400. compatible.
  401. Further, being the hash table implementation self-contained into each
  402. executable and shared libraries, objects with mixed hash style can
  403. peacefully coexist in the same process.
  404. If you want to use this new feature, answer Y
  405. choice
  406. prompt "Thread support"
  407. #default UCLIBC_HAS_THREADS_NATIVE if (TARGET_alpha || TARGET_arm || TARGET_i386 || TARGET_mips || TARGET_powerpc || TARGET_sh || TARGET_sh64)
  408. default HAS_NO_THREADS
  409. help
  410. If you want to compile uClibc with pthread support, then answer Y.
  411. This will increase the size of uClibc by adding a bunch of locking
  412. to critical data structures, and adding extra code to ensure that
  413. functions are properly reentrant.
  414. config HAS_NO_THREADS
  415. bool "none"
  416. help
  417. Disable thread support.
  418. config LINUXTHREADS_OLD
  419. bool "older (stable) version of linuxthreads"
  420. # linuxthreads and linuxthreads.old need nanosleep()
  421. select UCLIBC_HAS_REALTIME
  422. help
  423. There are two versions of linuxthreads. The older (stable) version
  424. has been in uClibc for quite a long time but hasn't seen too many
  425. updates other than bugfixes.
  426. config LINUXTHREADS_NEW
  427. bool "slightly newer version of linuxthreads"
  428. depends on ARCH_HAS_DEPRECATED_SYSCALLS
  429. help
  430. The new version has not been tested much, and lacks ports for arches
  431. which glibc does not support (like bfin/frv/etc...), but is based on
  432. the latest code from glibc, so it may be the only choice for the
  433. newer ports (like alpha/amd64/64bit arches and hppa).
  434. config UCLIBC_HAS_THREADS_NATIVE
  435. bool "Native POSIX Threading (NPTL)"
  436. select UCLIBC_HAS_TLS
  437. select UCLIBC_HAS_STDIO_FUTEXES
  438. select UCLIBC_HAS_REALTIME
  439. # i386 has no lowlevellock support (yet) as opposed to i486 onward
  440. depends on !CONFIG_386
  441. help
  442. If you want to compile uClibc with NPTL support, then answer Y.
  443. IMPORTANT NOTE! NPTL requires a Linux 2.6 kernel, binutils
  444. at least version 2.16 and GCC with at least version 4.1.0. NPTL
  445. will not work with older versions of any above sources. If you
  446. ignore any of these guidelines, you do so at your own risk. Do
  447. not ask for help on any of the development mailing lists.
  448. !!!! WARNING !!!! BIG FAT WARNING !!!! REALLY BIG FAT WARNING !!!!
  449. This is experimental code and at times it may not even build and
  450. even if it does it might decide to do random damage. This code is
  451. potentially hazardous to your health and sanity. It will remain
  452. that way until further notice at which point this notice will
  453. disappear. Thank you for your support and for not smoking.
  454. endchoice
  455. config UCLIBC_HAS_THREADS
  456. def_bool y if !HAS_NO_THREADS
  457. config UCLIBC_HAS_TLS
  458. bool "Thread-Local Storage"
  459. depends on UCLIBC_HAS_THREADS_NATIVE
  460. help
  461. If you want to enable TLS support then answer Y.
  462. This is fast an efficient way to store per-thread local data
  463. which is not on stack. It needs __thread support enabled in
  464. gcc.
  465. config PTHREADS_DEBUG_SUPPORT
  466. bool "Build pthreads debugging support"
  467. depends on UCLIBC_HAS_THREADS
  468. help
  469. Say Y here if you wish to be able to debug applications that use
  470. uClibc's pthreads library. By enabling this option, a library
  471. named libthread_db will be built. This library will be dlopen()'d
  472. by gdb and will allow gdb to debug the threads in your application.
  473. IMPORTANT NOTE! Because gdb must dlopen() the libthread_db library,
  474. you must compile gdb with uClibc in order for pthread debugging to
  475. work properly.
  476. If you are doing development and want to debug applications using
  477. uClibc's pthread library, answer Y. Otherwise, answer N.
  478. config UCLIBC_HAS_SYSLOG
  479. bool "Syslog support"
  480. default y
  481. depends on UCLIBC_HAS_NETWORK_SUPPORT
  482. select UCLIBC_HAS_SOCKET
  483. help
  484. Support sending messages to the system logger.
  485. This requires socket-support.
  486. config UCLIBC_HAS_LFS
  487. bool "Large File Support"
  488. default y
  489. help
  490. If you wish to build uClibc with support for accessing large files
  491. (i.e. files greater then 2 GiB) then answer Y. Do not enable this
  492. if you are using an older Linux kernel (2.0.x) that lacks large file
  493. support. Enabling this option will increase the size of uClibc.
  494. choice
  495. prompt "Malloc Implementation"
  496. default MALLOC if ! ARCH_USE_MMU
  497. default MALLOC_STANDARD if ARCH_USE_MMU
  498. config MALLOC
  499. bool "malloc"
  500. help
  501. "malloc" use mmap for all allocations and so works very well on
  502. MMU-less systems that do not support the brk() system call. It is
  503. pretty smart about reusing already allocated memory, and minimizing
  504. memory wastage.
  505. This is the default for uClinux MMU-less systems.
  506. config MALLOC_SIMPLE
  507. bool "malloc-simple"
  508. help
  509. "malloc-simple" is trivially simple and slow as molasses. It
  510. was written from scratch for uClibc, and is the simplest possible
  511. (and therefore smallest) malloc implementation.
  512. This uses only the mmap() system call to allocate and free memory,
  513. and does not use the brk() system call at all, making it a fine
  514. choice for MMU-less systems with very limited memory. It's 100%
  515. standards compliant, thread safe, very small, and releases freed
  516. memory back to the OS immediately rather than keeping it in the
  517. process's heap for reallocation. It is also VERY SLOW.
  518. config MALLOC_STANDARD
  519. bool "malloc-standard"
  520. depends on ARCH_USE_MMU
  521. help
  522. "malloc-standard" is derived from the public domain dlmalloc
  523. implementation by Doug Lea. It is quite fast, and is pretty smart
  524. about reusing already allocated memory, and minimizing memory
  525. wastage. This uses brk() for small allocations, while using mmap()
  526. for larger allocations. This is the default malloc implementation
  527. for uClibc.
  528. If unsure, answer "malloc-standard".
  529. endchoice
  530. config MALLOC_GLIBC_COMPAT
  531. bool "Malloc returns live pointer for malloc(0)"
  532. help
  533. The behavior of malloc(0) is listed as implementation-defined by
  534. SuSv3. Glibc returns a valid pointer to something, while uClibc
  535. normally returns NULL. I personally feel glibc's behavior is
  536. not particularly safe, and allows buggy applications to hide very
  537. serious problems.
  538. When this option is enabled, uClibc will act just like glibc, and
  539. return a live pointer when someone calls malloc(0). This pointer
  540. provides a malloc'ed area with a size of 1 byte. This feature is
  541. mostly useful when dealing with applications using autoconf's broken
  542. AC_FUNC_MALLOC macro (which redefines malloc as rpl_malloc if it
  543. does not detect glibc style returning-a-valid-pointer-for-malloc(0)
  544. behavior). Most people can safely answer N.
  545. config UCLIBC_HAS_OBSTACK
  546. bool "Obstack Support (gnu extension)"
  547. help
  548. When this option is enabled, uClibc will provide support for obstacks.
  549. An obstack is a structure in which memory can be dynamically allocated
  550. as a 'stack of objects'. Many programs need this GNU extention and
  551. you should say Y if you are using any. Otherwise, say N to save some
  552. space.
  553. config UCLIBC_DYNAMIC_ATEXIT
  554. bool "Dynamic atexit() Support"
  555. default y
  556. help
  557. When this option is enabled, uClibc will support an infinite number,
  558. of atexit() and on_exit() functions, limited only by your available
  559. memory. This can be important when uClibc is used with C++, since
  560. global destructors are implemented via atexit(), and it is quite
  561. possible to exceed the default number when this option is disabled.
  562. Enabling this option adds a few bytes, and more significantly makes
  563. atexit and on_exit depend on malloc, which can be bad when compiling
  564. static executables.
  565. Unless you use uClibc with C++, you should probably answer N.
  566. config COMPAT_ATEXIT
  567. bool "Old (visible) atexit Support"
  568. help
  569. Enable this option if you want to update from 0.9.28 to git/0.9.29,
  570. else you will be missing atexit() until you rebuild all apps.
  571. config UCLIBC_SUSV2_LEGACY
  572. bool "Enable SuSv2 LEGACY functions"
  573. help
  574. Enable this option if you want to have SuSv2 LEGACY functions
  575. Currently applies to:
  576. valloc
  577. WARNING! ABI incompatibility.
  578. config UCLIBC_SUSV3_LEGACY
  579. bool "Enable SuSv3 LEGACY functions"
  580. #vfork,
  581. # h_errno
  582. # gethostbyaddr
  583. # gethostbyname
  584. help
  585. Enable this option if you want to have SuSv3 LEGACY functions
  586. in the library, else they are replaced by SuSv3 proposed macros.
  587. Currently applies to:
  588. bcmp, bcopy, bzero, index, rindex, ftime,
  589. bsd_signal, (ecvt), (fcvt), gcvt, (getcontext),
  590. (getwd), (makecontext),
  591. mktemp, (pthread_attr_getstackaddr), (pthread_attr_setstackaddr),
  592. scalb, (setcontext), (swapcontext), ualarm, usleep,
  593. wcswcs.
  594. WARNING! ABI incompatibility.
  595. config UCLIBC_HAS_CONTEXT_FUNCS
  596. bool "Use obsolescent context control functions"
  597. depends on UCLIBC_SUSV3_LEGACY && ARCH_HAS_UCONTEXT
  598. help
  599. Add into library the SuSv3 obsolescent functions used for context
  600. control. The setcontext family allows the implementation in C of
  601. advanced control flow patterns such as iterators, fibers, and
  602. coroutines. They may be viewed as an advanced version of
  603. setjmp/longjmp; whereas the latter allows only a single non-local jump
  604. up the stack, setcontext allows the creation of multiple cooperative
  605. threads of control, each with its own stack.
  606. These functions are: setcontext, getcontext, makecontext, swapcontext.
  607. config UCLIBC_SUSV3_LEGACY_MACROS
  608. bool "Enable SuSv3 LEGACY macros"
  609. help
  610. Enable this option if you want to have SuSv3 LEGACY macros.
  611. Currently applies to bcopy/bzero/bcmp/index/rindex et al.
  612. WARNING! ABI incompatibility.
  613. config UCLIBC_SUSV4_LEGACY
  614. bool "Enable SuSv4 LEGACY or obsolescent functions"
  615. help
  616. Enable this option if you want to have SuSv4 LEGACY functions
  617. and macros in the library.
  618. Currently applies to:
  619. - XSI functions:
  620. _longjmp, _setjmp, _tolower, _toupper, ftw, getitimer,
  621. gettimeofday, isascii, pthread_getconcurrency,
  622. pthread_setconcurrency, setitimer, setpgrp, sighold,
  623. sigignore, sigpause, sigrelse, sigset, siginterrupt,
  624. tempnam, toascii, ulimit.
  625. - Base functions:
  626. asctime, asctime_r, ctime, ctime_r, gets, rand_r,
  627. tmpnam, utime.
  628. WARNING! ABI incompatibility.
  629. config UCLIBC_STRICT_HEADERS
  630. bool "Hide structures and constants for unsupported features"
  631. help
  632. Hide structures and constants in headers that should not be used,
  633. because the respective feature is disabled.
  634. WARNING! enabling this option requires to patch many faulty apps,
  635. since they make (wrongly) use of these structures/constants,
  636. although the feature was disabled.
  637. config UCLIBC_HAS_STUBS
  638. bool "Provide stubs for unavailable functionality"
  639. help
  640. With this option uClibc provides non-functional stubs for
  641. functions which are impossible to implement on the target
  642. architecture. Otherwise, such functions are simply omitted.
  643. config UCLIBC_HAS_SHADOW
  644. bool "Shadow Password Support"
  645. default y
  646. help
  647. Answer N if you do not need shadow password support.
  648. Most people will answer Y.
  649. config UCLIBC_HAS_PROGRAM_INVOCATION_NAME
  650. bool "Support for program_invocation_name"
  651. help
  652. Support for the GNU-specific program_invocation_name and
  653. program_invocation_short_name strings. Some GNU packages
  654. (like tar and coreutils) utilize these for extra useful
  655. output, but in general are not required.
  656. At startup, these external strings are automatically set
  657. up based on the value of ARGV[0].
  658. If unsure, just answer N.
  659. config UCLIBC_HAS___PROGNAME
  660. bool "Support for __progname"
  661. default y
  662. help
  663. Some packages (like openssh) like to peek into internal libc
  664. symbols to make their output a bit more user friendly.
  665. At startup, __progname is automatically set up based on the
  666. value of ARGV[0].
  667. If unsure, just answer N.
  668. config UCLIBC_HAS_PTY
  669. bool "Support for pseudo-terminals"
  670. default y
  671. help
  672. This enables support for pseudo-terminals (see man 4 pts
  673. and man 7 pty).
  674. If unsure, just answer Y.
  675. config ASSUME_DEVPTS
  676. bool "Assume that /dev/pts is a devpts or devfs file system"
  677. default y
  678. depends on UCLIBC_HAS_PTY
  679. help
  680. Enable this if /dev/pts is on a devpts or devfs filesystem. Both
  681. these filesystems automatically manage permissions on the /dev/pts
  682. devices. You may need to mount your devpts or devfs filesystem on
  683. /dev/pts for this to work.
  684. Most people should answer Y.
  685. config UNIX98PTY_ONLY
  686. bool "Support only Unix 98 PTYs"
  687. default y
  688. depends on UCLIBC_HAS_PTY
  689. help
  690. If you want to support only Unix 98 PTYs enable this. Some older
  691. applications may need this disabled and will thus use legacy BSD
  692. style PTY handling which is more complex and also bigger than
  693. Unix 98 PTY handling.
  694. For most current programs, you can generally answer Y.
  695. if UNIX98PTY_ONLY
  696. config UCLIBC_HAS_GETPT
  697. bool "Support getpt() (glibc-compat)"
  698. depends on UCLIBC_HAS_PTY
  699. help
  700. Some packages may need getpt().
  701. All of those are non-standard and can be considered
  702. GNU/libc compatibility.
  703. Either use posix_openpt() or just open /dev/ptmx yourself.
  704. If unsure, just say N.
  705. endif
  706. if !UNIX98PTY_ONLY
  707. # Have to use __libc_ptyname{1,2}[] and related bloat
  708. config UCLIBC_HAS_GETPT
  709. def_bool y
  710. endif
  711. config UCLIBC_HAS_LIBUTIL
  712. bool "Provide libutil library and functions"
  713. depends on UCLIBC_HAS_PTY
  714. help
  715. Provide a libutil library.
  716. This non-standard conforming library provides the following
  717. utility functions:
  718. forkpty(): combines openpty(), fork(2), and login_tty() to
  719. create a new process operating in a pseudo-terminal.
  720. login(): write utmp and wtmp entries
  721. login_tty(): prepares for a login on the tty fd by creating a
  722. new session, making fd the controlling terminal for
  723. the calling process, setting fd to be the standard
  724. input, output, and error streams of the current
  725. process, and closing fd.
  726. logout(): write utmp and wtmp entries
  727. logwtmp(): constructs a utmp structure and calls updwtmp() to
  728. append the structure to the utmp file.
  729. openpty(): finds an available pseudo-terminal and returns
  730. file descriptors for the master and slave
  731. This library adds about 3k-4k to your system.
  732. config UCLIBC_HAS_TM_EXTENSIONS
  733. bool "Support 'struct tm' timezone extension fields"
  734. default y
  735. help
  736. Enabling this option adds fields to 'struct tm' in time.h for
  737. tracking the number of seconds east of UTC, and an abbreviation for
  738. the current timezone. These fields are not specified by the SuSv3
  739. standard, but they are commonly used in both GNU and BSD application
  740. code.
  741. To strictly follow the SuSv3 standard, leave this disabled.
  742. Most people will probably want to answer Y.
  743. config UCLIBC_HAS_TZ_CACHING
  744. bool "Enable caching of the last valid timezone 'TZ' string"
  745. default y
  746. help
  747. Answer Y to enable caching of the last valid 'TZ' string describing
  748. the timezone setting. This allows a quick string compare to avoid
  749. repeated parsing of unchanged 'TZ' strings when tzset() is called.
  750. Most people will answer Y.
  751. config UCLIBC_HAS_TZ_FILE
  752. bool "Enable '/etc/TZ' file support to set a default timezone (uClibc-specific)"
  753. default y
  754. help
  755. Answer Y to enable the setting of a default timezone for uClibc.
  756. Ordinarily, uClibc gets the timezone information exclusively from the
  757. 'TZ' environment variable. In particular, there is no support for
  758. the zoneinfo directory tree or the /etc/timezone file used by glibc.
  759. With this option enabled, uClibc will use the value stored in the
  760. file '/etc/TZ' (default path) to obtain timezone information if the
  761. 'TZ' environment variable is missing or has an invalid value. The
  762. file consists of a single line (newline required) of text describing
  763. the timezone in the format specified for the TZ environment variable.
  764. Doing 'echo CST6CDT > /etc/TZ' is enough to create a valid file.
  765. See
  766. http://www.opengroup.org/onlinepubs/007904975/basedefs/xbd_chap08.html
  767. for details on valid settings of 'TZ'.
  768. Most people will answer Y.
  769. config UCLIBC_HAS_TZ_FILE_READ_MANY
  770. bool "Repeatedly read the '/etc/TZ' file"
  771. depends on UCLIBC_HAS_TZ_FILE
  772. default y
  773. help
  774. Answer Y to enable repeated reading of the '/etc/TZ' file even after
  775. a valid value has been read. This incurs the overhead of an
  776. open/read/close for each tzset() call (explicit or implied). However,
  777. setting this will allow applications to update their timezone
  778. information if the contents of the file change.
  779. Most people will answer Y.
  780. config UCLIBC_TZ_FILE_PATH
  781. string "Path to the 'TZ' file for setting the global timezone"
  782. depends on UCLIBC_HAS_TZ_FILE
  783. default "/etc/TZ"
  784. help
  785. This is the path to the 'TZ' file.
  786. Most people will use the default of '/etc/TZ'.
  787. config UCLIBC_FALLBACK_TO_ETC_LOCALTIME
  788. bool "Use /etc/localtime as a fallback"
  789. depends on UCLIBC_HAS_TZ_FILE
  790. default y
  791. help
  792. Answer Y to try to use /etc/localtime file.
  793. On glibc systems this file (if it is in TZif2 format)
  794. contains timezone string at the end.
  795. Most people will answer Y.
  796. endmenu
  797. menu "Advanced Library Settings"
  798. config UCLIBC_PWD_BUFFER_SIZE
  799. int "Buffer size for getpwnam() and friends"
  800. default 256
  801. range 12 1024
  802. help
  803. This sets the value of the buffer size for getpwnam() and friends.
  804. By default, this is 256. (For reference, glibc uses 1024).
  805. The value can be found using sysconf() with the _SC_GETPW_R_SIZE_MAX
  806. parameter.
  807. config UCLIBC_GRP_BUFFER_SIZE
  808. int "Buffer size for getgrnam() and friends"
  809. default 256
  810. range 12 1024
  811. help
  812. This sets the value of the buffer size for getgrnam() and friends.
  813. By default, this is 256. (For reference, glibc uses 1024).
  814. The value can be found using sysconf() with the _SC_GETGR_R_SIZE_MAX
  815. parameter.
  816. comment "Support various families of functions"
  817. config UCLIBC_LINUX_MODULE_26
  818. bool "Linux kernel module functions (2.6)"
  819. default y
  820. help
  821. delete_module, init_module
  822. are used in linux for loadable kernel modules.
  823. Say N if you do not use kernel modules.
  824. config UCLIBC_LINUX_MODULE_24
  825. bool "Linux kernel module functions (<2.6)"
  826. depends on !TARGET_bfin && !TARGET_c6x
  827. help
  828. create_module, query_module
  829. are used in linux (prior to 2.6) for loadable kernel modules.
  830. Say N if you do not use kernel modules, or you only support
  831. Linux 2.6+.
  832. config UCLIBC_LINUX_SPECIFIC
  833. bool "Linux specific functions"
  834. default y
  835. help
  836. accept4(), bdflush(),
  837. capget(), capset(), eventfd(), fallocate(),
  838. fstatfs(), inotify_*(), ioperm(), iopl(),
  839. madvise(), modify_ldt(), pipe2(), personality(),
  840. prctl()/arch_prctl(), pivot_root(), modify_ldt(),
  841. ppoll(), readahead(), reboot(), remap_file_pages(),
  842. sched_getaffinity(), sched_setaffinity(), sendfile(),
  843. setfsgid(), setfsuid(), setresgid(), setresuid(),
  844. splice(), vmsplice(), tee(), signalfd(), statfs(),
  845. swapoff(), swapon(), sync_file_range(), _sysctl(),
  846. sysinfo(), timerfd_*(), vhangup(), umount(), umount2()
  847. config UCLIBC_HAS_GNU_ERROR
  848. bool "Support GNU extensions for error-reporting"
  849. default y
  850. help
  851. Support for the GNU-specific error(), error_at_line(),
  852. void (* error_print_progname)(), error_message_count
  853. functions and variables. Some GNU packages
  854. utilize these for extra useful output, but in general
  855. are not required.
  856. If unsure, just answer N.
  857. config UCLIBC_BSD_SPECIFIC
  858. bool "BSD specific functions"
  859. default y
  860. help
  861. mincore(), getdomainname(), setdomainname()
  862. If unsure, say N.
  863. config UCLIBC_HAS_BSD_ERR
  864. bool "BSD err functions"
  865. default y
  866. help
  867. These functions are non-standard BSD extensions.
  868. err(), errx(), warn(), warnx(), verr(), verrx(), vwarn(), vwarnx()
  869. If unsure, say N.
  870. config UCLIBC_HAS_OBSOLETE_BSD_SIGNAL
  871. bool "BSD obsolete signal functions"
  872. help
  873. These functions are provided as a compatibility interface for
  874. programs that make use of the historical System V signal API.
  875. This API is obsolete:
  876. new applications should use the POSIX signal API (sigaction(2),
  877. sigprocmask(2), etc.).
  878. Affected functions:
  879. sigset(), sighold(), sigrelse(), sigignore()
  880. If unsure, say N.
  881. config UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL
  882. bool "SYSV obsolete signal functions"
  883. help
  884. Use of sysv_signal() should be avoided; use sigaction(2) instead.
  885. If unsure, say N.
  886. config UCLIBC_NTP_LEGACY
  887. bool "ntp_*() aliases"
  888. help
  889. Provide legacy aliases for ntp functions:
  890. ntp_adjtime(), ntp_gettime()
  891. It is safe to say N here.
  892. config UCLIBC_SV4_DEPRECATED
  893. bool "Enable SVr4 deprecated functions"
  894. help
  895. These functions are DEPRECATED in System V release 4.
  896. Say N unless you desparately need one of the functions below:
  897. ustat() [use statfs(2) in your code instead]
  898. config UCLIBC_HAS_REALTIME
  899. bool "Realtime-related family of SUSv functions"
  900. default y
  901. help
  902. These functions are part of the Timers option and need not
  903. be available on all implementations.
  904. Includes AIO, message-queue, scheduler, semaphore functions:
  905. aio.h
  906. mqueue.h
  907. sched.h
  908. semaphore.h
  909. aio_cancel()
  910. aio_error()
  911. aio_fsync()
  912. aio_read()
  913. lio_listio()
  914. aio_return()
  915. aio_suspend()
  916. aio_write()
  917. clock_getres(), clock_gettime(), clock_settime()
  918. fdatasync()
  919. mlockall(), munlockall()
  920. mlock(), munlock()
  921. mq_close()
  922. mq_getattr()
  923. mq_notify()
  924. mq_open()
  925. mq_receive()
  926. mq_send()
  927. mq_setattr()
  928. mq_unlink()
  929. nanosleep()
  930. sched_getparam()
  931. sched_get_priority_max(), sched_get_priority_min()
  932. sched_getscheduler()
  933. sched_rr_get_interval()
  934. sched_setparam()
  935. sched_setscheduler()
  936. sem_close()
  937. sem_destroy()
  938. sem_getvalue()
  939. sem_init()
  940. sem_open()
  941. sem_post()
  942. sem_trywait(), sem_wait()
  943. sem_unlink()
  944. sigqueue()
  945. sigtimedwait(), sigwaitinfo()
  946. timer_create()
  947. timer_delete()
  948. timer_getoverrun(), timer_gettime(), timer_settime()
  949. config UCLIBC_HAS_ADVANCED_REALTIME
  950. bool "Advanced realtime-related family of SUSv functions"
  951. default y
  952. depends on UCLIBC_HAS_REALTIME
  953. help
  954. These functions are part of the Timers option and need not
  955. be available on all implementations.
  956. clock_getcpuclockid()
  957. clock_nanosleep()
  958. mq_timedreceive()
  959. mq_timedsend()
  960. posix_fadvise()
  961. posix_fallocate()
  962. posix_madvise()
  963. posix_memalign()
  964. posix_mem_offset()
  965. posix_spawnattr_destroy(), posix_spawnattr_init()
  966. posix_spawnattr_getflags(), posix_spawnattr_setflags()
  967. posix_spawnattr_getpgroup(), posix_spawnattr_setpgroup()
  968. posix_spawnattr_getschedparam(), posix_spawnattr_setschedparam()
  969. posix_spawnattr_getschedpolicy(), posix_spawnattr_setschedpolicy()
  970. posix_spawnattr_getsigdefault(), posix_spawnattr_setsigdefault()
  971. posix_spawnattr_getsigmask(), posix_spawnattr_setsigmask()
  972. posix_spawn_file_actions_addclose()
  973. posix_spawn_file_actions_adddup2()
  974. posix_spawn_file_actions_addopen()
  975. posix_spawn_file_actions_destroy()
  976. posix_spawn_file_actions_init()
  977. posix_spawn()
  978. posix_spawnp()
  979. posix_typed_mem_get_info()
  980. pthread_mutex_timedlock()
  981. sem_timedwait()
  982. #config UCLIBC_HAS_TERMIOS
  983. # bool "termios functions"
  984. # default y
  985. # help
  986. # Get and set terminal attributes, line control, get and set baud
  987. # rate.
  988. # termios(), tcgetattr(), tcsetattr(), tcsendbreak(), tcdrain(),
  989. # tcflush(), tcflow(), cfmakeraw(), cfgetospeed(), cfgetispeed(),
  990. # cfsetispeed(), cfsetospeed(), cfsetspeed()
  991. #
  992. # If unsure, say Y.
  993. config UCLIBC_HAS_EPOLL
  994. bool "epoll"
  995. default y
  996. help
  997. epoll_create(), epoll_ctl(), epoll_wait() functions.
  998. config UCLIBC_HAS_XATTR
  999. bool "Extended Attributes"
  1000. default y
  1001. help
  1002. Extended Attributes support.
  1003. setxattr()
  1004. lsetxattr()
  1005. fsetxattr()
  1006. getxattr()
  1007. lgetxattr()
  1008. fgetxattr()
  1009. listxattr()
  1010. llistxattr()
  1011. flistxattr()
  1012. removexattr()
  1013. lremovexattr()
  1014. fremovexattr()
  1015. Say N unless you need support for extended attributes and the
  1016. filesystems do actually support them.
  1017. config UCLIBC_HAS_PROFILING
  1018. bool "Profiling support"
  1019. default y
  1020. help
  1021. gcc's -finstrument-functions needs these.
  1022. Most people can safely answer N.
  1023. config UCLIBC_HAS_CRYPT_IMPL
  1024. bool "libcrypt support"
  1025. default y
  1026. help
  1027. libcrypt contains crypt(), setkey() and encrypt()
  1028. config UCLIBC_HAS_SHA256_CRYPT_IMPL
  1029. bool "libcrypt SHA256 support"
  1030. depends on UCLIBC_HAS_CRYPT_IMPL
  1031. help
  1032. This adds support for SHA256 password hashing via the crypt() function.
  1033. Say N here if you do not need SHA256 crypt support.
  1034. config UCLIBC_HAS_SHA512_CRYPT_IMPL
  1035. bool "libcrypt SHA512 support"
  1036. depends on UCLIBC_HAS_CRYPT_IMPL
  1037. help
  1038. This adds support for SHA512 password hashing via the crypt() function.
  1039. Say N here if you do not need SHA512 crypt support.
  1040. config UCLIBC_HAS_CRYPT_STUB
  1041. bool "libcrypt stubs"
  1042. default y
  1043. depends on !UCLIBC_HAS_CRYPT_IMPL
  1044. help
  1045. Standards mandate that crypt(3) provides a stub if it is unavailable.
  1046. If you enable this option then stubs for
  1047. crypt(), setkey() and encrypt()
  1048. will be provided in a small libcrypt.
  1049. config UCLIBC_HAS_CRYPT
  1050. def_bool y
  1051. depends on UCLIBC_HAS_CRYPT_IMPL || UCLIBC_HAS_CRYPT_STUB
  1052. endmenu
  1053. menuconfig UCLIBC_HAS_NETWORK_SUPPORT
  1054. bool "Networking Support"
  1055. default y
  1056. help
  1057. Say N here if you do not need network support.
  1058. if UCLIBC_HAS_NETWORK_SUPPORT
  1059. config UCLIBC_HAS_SOCKET
  1060. bool "Socket support"
  1061. default y
  1062. help
  1063. If you want to include support for sockets then answer Y.
  1064. config UCLIBC_HAS_IPV4
  1065. bool "IP version 4 support"
  1066. default y
  1067. select UCLIBC_HAS_SOCKET
  1068. help
  1069. If you want to include support for the Internet Protocol
  1070. (IP version 4) then answer Y.
  1071. Most people will say Y.
  1072. config UCLIBC_HAS_IPV6
  1073. bool "IP version 6 support"
  1074. select UCLIBC_HAS_SOCKET
  1075. help
  1076. If you want to include support for the next version of the Internet
  1077. Protocol (IP version 6) then answer Y.
  1078. Most people should answer N.
  1079. config UCLIBC_HAS_RPC
  1080. bool "Remote Procedure Call (RPC) support"
  1081. # RPC+socket-ipvX doesn't currently work.
  1082. depends on UCLIBC_HAS_IPV4 || UCLIBC_HAS_IPV6
  1083. help
  1084. If you want to include RPC support, enable this. RPC is rarely used
  1085. for anything except for the NFS filesystem. Unless you plan to use
  1086. NFS, you can probably leave this set to N and save some space.
  1087. If you need to use NFS then you should answer Y.
  1088. config UCLIBC_HAS_FULL_RPC
  1089. bool "Full RPC support"
  1090. depends on UCLIBC_HAS_RPC
  1091. default y if !HAVE_SHARED
  1092. help
  1093. Normally we enable just enough RPC support for things like rshd and
  1094. nfs mounts to work. If you find you need the rest of the RPC stuff,
  1095. then enable this option. Most people can safely answer N.
  1096. config UCLIBC_HAS_REENTRANT_RPC
  1097. bool "Reentrant RPC support"
  1098. depends on UCLIBC_HAS_RPC
  1099. default y if !HAVE_SHARED
  1100. help
  1101. Most packages utilize the normal (non-reentrant) RPC functions, but
  1102. some (like exportfs from nfs-utils) need these reentrant versions.
  1103. Most people can safely answer N.
  1104. config UCLIBC_USE_NETLINK
  1105. bool "Use netlink to query interfaces"
  1106. depends on UCLIBC_HAS_SOCKET
  1107. help
  1108. In newer versions of Linux (2.4.17+), support was added for querying
  1109. network device information via netlink rather than the old style
  1110. ioctl's. Most of the time, the older ioctl style is sufficient (and
  1111. it is smaller than netlink), but if you find that not all of your
  1112. devices are being returned by the if_nameindex() function, you will
  1113. have to use the netlink implementation.
  1114. Most people can safely answer N.
  1115. config UCLIBC_SUPPORT_AI_ADDRCONFIG
  1116. bool "Support the AI_ADDRCONFIG flag"
  1117. depends on UCLIBC_USE_NETLINK
  1118. help
  1119. The implementation of AI_ADDRCONFIG is aligned with the glibc
  1120. implementation using netlink to query interfaces to find both
  1121. ipv4 and ipv6 support. This is only needed if an application uses
  1122. the AI_ADDRCONFIG flag.
  1123. Most people can safely answer N.
  1124. config UCLIBC_HAS_BSD_RES_CLOSE
  1125. bool "Support res_close() (bsd-compat)"
  1126. help
  1127. Answer Y if you desperately want to support BSD compatibility in
  1128. the network code.
  1129. Most people will say N.
  1130. config UCLIBC_HAS_COMPAT_RES_STATE
  1131. bool "Use compatible but bloated _res"
  1132. default y
  1133. help
  1134. Answer Y if you build network utilities and they muck with resolver
  1135. internals a lot (_res global structure). uclibc does not use most
  1136. of _res.XXX fields, and with this option OFF they won't even exist.
  1137. Which will make e.g. dig build fail.
  1138. Answering N saves around 400 bytes in bss.
  1139. config UCLIBC_HAS_EXTRA_COMPAT_RES_STATE
  1140. bool "Use extra compatible but extra bloated _res"
  1141. help
  1142. Answer Y if selecting UCLIBC_HAS_COMPAT_RES_STATE is not enough.
  1143. As far as I can say, this should never be needed.
  1144. config UCLIBC_HAS_RESOLVER_SUPPORT
  1145. bool "DNS resolver functions"
  1146. select UCLIBC_HAS_COMPAT_RES_STATE
  1147. depends on UCLIBC_HAS_IPV4 || UCLIBC_HAS_IPV6
  1148. help
  1149. Provide implementations for DNS resolver functions.
  1150. In particular, the following functions will be added to the
  1151. library:
  1152. ns_skiprr, ns_initparse, ns_parserr, ns_msg_getflag,
  1153. res_mkquery, res_init, res_ninit, res_close, res_nclose
  1154. res_query, res_search, res_querydomain,
  1155. dn_expand, dn_comp,
  1156. ns_name_uncompress, ns_name_ntop, ns_name_pton, ns_name_unpack,
  1157. ns_name_pack, ns_name_compress, ns_name_skip, dn_skipname,
  1158. ns_get16, ns_get32, ns_put16, ns_put32
  1159. config UCLIBC_HAS_LIBRESOLV_STUB
  1160. bool "Provide libresolv stub"
  1161. help
  1162. Provide a dummy resolv library.
  1163. config UCLIBC_HAS_LIBNSL_STUB
  1164. bool "Provide libnsl stub"
  1165. help
  1166. Provide a dummy nsl library.
  1167. endif
  1168. menu "String and Stdio Support"
  1169. config UCLIBC_HAS_STRING_GENERIC_OPT
  1170. bool "Use faster (but larger) generic string functions"
  1171. default y
  1172. help
  1173. Answer Y to use the (tweaked) glibc generic string functions.
  1174. In general, they are faster (but 3-5K larger) than the base
  1175. uClibc string functions which are optimized solely for size.
  1176. Many people will answer Y.
  1177. config UCLIBC_HAS_STRING_ARCH_OPT
  1178. bool "Use arch-specific assembly string functions (where available)"
  1179. default y
  1180. help
  1181. Answer Y to use any archtecture-specific assembly language string
  1182. functions available for this target plaform.
  1183. Note that assembly implementations are not available for all string
  1184. functions, so some generic (written in C) string functions may
  1185. still be used.
  1186. These are small and fast, the only reason _not_ to say Y here is
  1187. for debugging purposes.
  1188. config UCLIBC_HAS_STDIO_FUTEXES
  1189. bool "Use futexes for multithreaded I/O locking"
  1190. depends on UCLIBC_HAS_THREADS_NATIVE
  1191. help
  1192. If you want to compile uClibc to use futexes for low-level
  1193. I/O locking, answer Y. Otherwise, answer N.
  1194. config UCLIBC_HAS_CTYPE_TABLES
  1195. bool "Use Table Versions Of 'ctype.h' Functions."
  1196. default y
  1197. help
  1198. Answer Y to use table versions of the 'ctype.h' functions.
  1199. While the non-table versions are often smaller when building
  1200. statically linked apps, they work only in stub locale mode.
  1201. Most people will answer Y.
  1202. config UCLIBC_HAS_CTYPE_SIGNED
  1203. bool "Support Signed Characters In 'ctype.h' Functions."
  1204. depends on UCLIBC_HAS_CTYPE_TABLES
  1205. default y
  1206. help
  1207. Answer Y to enable support for passing signed char values to
  1208. the 'ctype.h' functions. ANSI/ISO C99 and SUSv3 specify that
  1209. these functions are only defined for unsigned char values and
  1210. EOF. However, glibc allows negative signed char values as well
  1211. in order to support 'broken old programs'.
  1212. Most people will answer Y.
  1213. choice
  1214. prompt "ctype argument checking"
  1215. depends on UCLIBC_HAS_CTYPE_TABLES
  1216. default UCLIBC_HAS_CTYPE_UNSAFE
  1217. help
  1218. Please select the invalid arg behavior you want for the 'ctype'
  1219. functions.
  1220. The 'ctype' functions are now implemented using table lookups, with
  1221. the arg being the index. This can result in incorrect memory accesses
  1222. or even segfaults for args outside of the allowed range.
  1223. NOTE: This only affects the 'ctype' _functions_. It does not affect
  1224. the macro implementations.
  1225. config UCLIBC_HAS_CTYPE_UNSAFE
  1226. bool "Do not check -- unsafe"
  1227. config UCLIBC_HAS_CTYPE_CHECKED
  1228. bool "Detect and handle appropriately"
  1229. config UCLIBC_HAS_CTYPE_ENFORCED
  1230. bool "Issue a diagnostic and abort()"
  1231. endchoice
  1232. config UCLIBC_HAS_WCHAR
  1233. bool "Wide Character Support"
  1234. help
  1235. Answer Y to enable wide character support. This will make uClibc
  1236. much larger. It is also currently required for locale support.
  1237. Most people will answer N.
  1238. config UCLIBC_HAS_LOCALE
  1239. bool "Locale Support"
  1240. select UCLIBC_HAS_WCHAR
  1241. select UCLIBC_HAS_CTYPE_TABLES
  1242. help
  1243. uClibc now has full ANSI/ISO C99 locale support (except for
  1244. wcsftime() and collating items in regex). Be aware that enabling
  1245. this option will make uClibc much larger.
  1246. Enabling UCLIBC_HAS_LOCALE with the default set of supported locales
  1247. (169 UTF-8 locales, and 144 locales for other codesets) will enlarge
  1248. uClibc by around 300k. You can reduce this size by building your own
  1249. custom set of locate data (see extra/locale/LOCALES for details).
  1250. uClibc's locale support is still under development. For example,
  1251. codesets using shift states are not currently supported. Support is
  1252. planned in the next iteration of locale support.
  1253. Answer Y to enable locale support. Most people will answer N.
  1254. choice
  1255. prompt "Locale data"
  1256. depends on UCLIBC_HAS_LOCALE
  1257. default UCLIBC_BUILD_ALL_LOCALE
  1258. config UCLIBC_BUILD_ALL_LOCALE
  1259. bool "All locales"
  1260. depends on UCLIBC_HAS_LOCALE
  1261. help
  1262. This builds all the locales that are available on your
  1263. host-box.
  1264. config UCLIBC_BUILD_MINIMAL_LOCALE
  1265. bool "Only selected locales"
  1266. depends on UCLIBC_HAS_LOCALE
  1267. help
  1268. If you do not need all locales that are available on your
  1269. host-box, then set this to 'Y'.
  1270. config UCLIBC_PREGENERATED_LOCALE_DATA
  1271. bool "Use Pre-generated Locale Data"
  1272. depends on UCLIBC_HAS_LOCALE && !TARGET_metag
  1273. help
  1274. Use pre-built locale data.
  1275. Note that these pregenerated locales are sensitive to your
  1276. target architecture (endianess, bitcount).
  1277. Saying N here is highly recommended.
  1278. endchoice
  1279. config UCLIBC_BUILD_MINIMAL_LOCALES
  1280. string "locales to use"
  1281. depends on UCLIBC_BUILD_MINIMAL_LOCALE
  1282. default "en_US"
  1283. help
  1284. Space separated list of locales to use.
  1285. E.g.:
  1286. en_US en_GB de_AT
  1287. default:
  1288. en_US
  1289. config UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA
  1290. bool "Automagically Download the Pre-generated Locale Data (if necessary)"
  1291. depends on UCLIBC_PREGENERATED_LOCALE_DATA
  1292. help
  1293. If you would like the build process to use 'wget' to automatically
  1294. download the pregenerated locale data, enable this option. Otherwise
  1295. you will need to obtain the locale data yourself from:
  1296. http://www.uclibc.org/downloads/uClibc-locale-*.tgz
  1297. and place the uClibc-locale-*.tgz tarball in the extra/locale/
  1298. directory.
  1299. Note that the use of pregenerated locale data is discouraged.
  1300. config UCLIBC_HAS_XLOCALE
  1301. bool "Extended Locale Support (experimental/incomplete)"
  1302. depends on UCLIBC_HAS_LOCALE
  1303. help
  1304. Answer Y to enable extended locale support similar to that provided
  1305. by glibc. This is primarily intended to support libstd++
  1306. functionality.
  1307. However, it also allows thread-specific locale selection via
  1308. uselocale().
  1309. Most people will answer N.
  1310. config UCLIBC_HAS_HEXADECIMAL_FLOATS
  1311. bool "Support hexadecimal float notation"
  1312. depends on UCLIBC_HAS_CTYPE_TABLES
  1313. depends on UCLIBC_HAS_FLOATS
  1314. help
  1315. Answer Y to enable support for hexadecimal float notation in the
  1316. (wchar and) char string to floating point conversion functions, as
  1317. well as support for the %a and %A conversion specifiers in the
  1318. *printf() and *scanf() functions.
  1319. Most people will answer N.
  1320. config UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  1321. bool "Support glibc's \"'\" flag for allowing locale-specific digit grouping"
  1322. depends on UCLIBC_HAS_LOCALE
  1323. depends on UCLIBC_HAS_FLOATS
  1324. help
  1325. Answer Y to enable support for glibc's \"'\" flag for allowing
  1326. locale-specific digit grouping in base 10 integer conversions and
  1327. appropriate floating point conversions in the *printf() and *scanf()
  1328. functions.
  1329. Most people will answer N.
  1330. config UCLIBC_HAS_SCANF_LENIENT_DIGIT_GROUPING
  1331. bool "Do not require digit grouping when the \"'\" flag is specified"
  1332. depends on UCLIBC_HAS_GLIBC_DIGIT_GROUPING
  1333. default y
  1334. help
  1335. Answer Y to make digit grouping optional when the \"'\" flag is
  1336. specified.
  1337. This is the standard glibc behavior. If the initial string of digits
  1338. exceeds the maximum group number, the input will be treated as a
  1339. normal non-grouped number.
  1340. Most people will answer N.
  1341. config UCLIBC_HAS_GLIBC_CUSTOM_PRINTF
  1342. bool "Support glibc's register_printf_function() (glibc-compat)"
  1343. depends on !USE_OLD_VFPRINTF
  1344. help
  1345. Answer Y to support glibc's register_printf_function() to allow an
  1346. application to add its own printf conversion specifiers.
  1347. parse_printf_format() is also enabled.
  1348. NOTE: Limits the number or registered specifiers to 10.
  1349. NOTE: Requires new conversion specifiers to be ASCII
  1350. characters (0-0x7f). This is to avoid problems with processing
  1351. format strings in locales with different multibyte conversions.
  1352. Most people will answer N.
  1353. config USE_OLD_VFPRINTF
  1354. bool "Use the old vfprintf implementation"
  1355. depends on !UCLIBC_HAS_WCHAR
  1356. help
  1357. Set to true to use the old vfprintf instead of the new. This is
  1358. roughly C89 compliant with some extensions, and is much smaller.
  1359. However, it does not support wide chars, positional args, or glibc
  1360. custom printf specifiers.
  1361. Most people will answer N.
  1362. config UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS
  1363. int "Maximum number of positional args. Either 0 or >= 9."
  1364. depends on !USE_OLD_VFPRINTF
  1365. default 9
  1366. help
  1367. Set the maximum number of positional args supported by the
  1368. printf/scanf functions. The Single Unix Specification Version 3
  1369. requires a minimum value of 9. Setting this to a value lower than
  1370. 9 will disable positional arg support and cause the NL_ARGMAX macro
  1371. in limits.h to be #undef'd.
  1372. WARNING! The workspace to support positional args is currently
  1373. allocated on the stack. You probably don't want to set
  1374. this to too high a value.
  1375. Most people will answer 9.
  1376. choice
  1377. prompt "Stdio buffer size"
  1378. default UCLIBC_HAS_STDIO_BUFSIZ_4096
  1379. help
  1380. Please select a value for BUFSIZ. This will be used by the
  1381. stdio subsystem as the default buffer size for a file, and
  1382. affects fopen(), setvbuf(), etc.
  1383. NOTE: Setting this to 'none' will disable buffering completely.
  1384. However, BUFSIZ will still be defined in stdio.h as 256 because
  1385. many applications use this value.
  1386. config UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1387. bool "none (WARNING - BUFSIZ will be 256 in stdio.h)"
  1388. depends on !UCLIBC_HAS_WCHAR
  1389. config UCLIBC_HAS_STDIO_BUFSIZ_256
  1390. bool "256 (minimum ANSI/ISO C99 value)"
  1391. config UCLIBC_HAS_STDIO_BUFSIZ_512
  1392. bool "512"
  1393. config UCLIBC_HAS_STDIO_BUFSIZ_1024
  1394. bool "1024"
  1395. config UCLIBC_HAS_STDIO_BUFSIZ_2048
  1396. bool "2048"
  1397. config UCLIBC_HAS_STDIO_BUFSIZ_4096
  1398. bool "4096"
  1399. config UCLIBC_HAS_STDIO_BUFSIZ_8192
  1400. bool "8192"
  1401. # If you add more choices, you will need to update uClibc_stdio.h.
  1402. endchoice
  1403. choice
  1404. prompt "Stdio builtin buffer size (uClibc-specific)"
  1405. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1406. default UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1407. help
  1408. When a FILE is created with fopen(), an attempt is made to allocate
  1409. a BUFSIZ buffer for it. If the allocation fails, fopen() will still
  1410. succeed but the FILE will be unbuffered.
  1411. This option adds a small amount of space to each FILE to act as an
  1412. emergency buffer in the event of a buffer allocation failure.
  1413. Most people will answer None.
  1414. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE
  1415. bool "None"
  1416. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_4
  1417. bool "4"
  1418. config UCLIBC_HAS_STDIO_BUILTIN_BUFFER_8
  1419. bool "8"
  1420. # If you add more choices, you will need to update uClibc_stdio.h.
  1421. endchoice
  1422. config UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT
  1423. bool "Attempt to shutdown stdio subsystem when abort() is called."
  1424. help
  1425. ANSI/ISO C99 requires abort() to be asyn-signal-safe. So there was
  1426. a behavioral change made in SUSv3. Previously, abort() was required
  1427. to have the affect of fclose() on all open streams. The wording has
  1428. been changed to "may" from "shall".
  1429. Most people will answer N.
  1430. config UCLIBC_HAS_STDIO_GETC_MACRO
  1431. bool "Provide a macro version of getc()"
  1432. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1433. default y
  1434. help
  1435. Provide a macro version of getc().
  1436. Most people will answer Y.
  1437. config UCLIBC_HAS_STDIO_PUTC_MACRO
  1438. bool "Provide a macro version of putc()"
  1439. depends on !UCLIBC_HAS_STDIO_BUFSIZ_NONE
  1440. default y
  1441. help
  1442. Provide a macro version of putc().
  1443. Most people will answer Y.
  1444. config UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION
  1445. bool "Support auto-r/w transition"
  1446. default y
  1447. help
  1448. Answer Y to enable the stdio subsystem to automaticly transition
  1449. between reading and writing. This relaxes the ANSI/ISO C99
  1450. requirement:
  1451. When a file is opened with update mode ('+' as the second or third
  1452. character in the list of mode argument values), both input and output
  1453. may be performed on the associated stream. However, output shall not
  1454. be directly followed by input without an intervening call to the
  1455. fflush function or to a file positioning function (fseek, fsetpos,
  1456. or rewind), and input shall not be directly followed by output without
  1457. an intervening call to a file positioning function, unless the input
  1458. operation encounters end­of­file.
  1459. Most people will answer Y.
  1460. config UCLIBC_HAS_FOPEN_LARGEFILE_MODE
  1461. bool "Support an fopen() 'F' flag for large file mode (uClibc-specific)"
  1462. depends on UCLIBC_HAS_LFS
  1463. help
  1464. Answer Y to enable a uClibc-specific extension to allow passing an
  1465. additional 'F' flag in the mode string for fopen() to specify that
  1466. the file should be open()ed with the O_LARGEFILE flag set.
  1467. Most people will answer N.
  1468. config UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE
  1469. bool "Support an fopen() 'x' flag for exclusive mode (glibc-compat)"
  1470. help
  1471. Answer Y to support a glibc extension to allow passing
  1472. additional 'x' flag in the mode string for fopen() to specify that
  1473. the file should be open()ed with the O_EXCL flag set.
  1474. Most people will answer N.
  1475. config UCLIBC_HAS_FOPEN_CLOSEEXEC_MODE
  1476. bool "Support an fopen() 'e' flag for close-on-exec mode (glibc-compat)"
  1477. help
  1478. Answer Y to support a glibc extension to allow passing
  1479. additional 'e' flag in the mode string for fopen() to specify that
  1480. the file should be open()ed with the O_CLOEXEC flag set.
  1481. Most people will answer N.
  1482. config UCLIBC_HAS_GLIBC_CUSTOM_STREAMS
  1483. bool "Support fmemopen(), open_memstream(), and fopencookie() (glibc-compat)"
  1484. help
  1485. Answer Y to support the glibc 'custom stream' extension functions
  1486. fmemopen(), open_memstream(), and fopencookie().
  1487. NOTE: There are some minor differences regarding seeking behavior.
  1488. Most people will answer N.
  1489. config UCLIBC_HAS_PRINTF_M_SPEC
  1490. bool "Support the '%m' specifier in printf format strings (glibc-compat)"
  1491. help
  1492. Answer Y to support a glibc extension to interpret '%m' in printf
  1493. format strings as an instruction to output the error message string
  1494. (as generated by strerror) corresponding to the current value of
  1495. 'errno'.
  1496. Most people will answer N.
  1497. config UCLIBC_HAS_ERRNO_MESSAGES
  1498. bool "Include the errno message text in the library"
  1499. default y
  1500. help
  1501. Answer Y if you want to include the errno message text in the
  1502. library. This adds about 3K to the library, but enables strerror()
  1503. to generate text other than 'Unknown error <number>'.
  1504. Most people will answer Y.
  1505. config UCLIBC_HAS_SYS_ERRLIST
  1506. bool "Support sys_errlist[] (obsolete-compat)"
  1507. depends on UCLIBC_HAS_ERRNO_MESSAGES
  1508. help
  1509. Answer Y if you want to support the obsolete sys_errlist[].
  1510. This adds about 0.5k to the library, except for the mips
  1511. arch where it adds over 4K.
  1512. WARNING! In the future, support for sys_errlist[] may be unavailable
  1513. in at least some configurations. In fact, it may be removed
  1514. altogether.
  1515. Most people will answer N.
  1516. Application writers: use the strerror(3) function.
  1517. config UCLIBC_HAS_SIGNUM_MESSAGES
  1518. bool "Include the signum message text in the library"
  1519. default y
  1520. help
  1521. Answer Y if you want to include the signum message text in the
  1522. library. This adds about 0.5K to the library, but enables strsignal()
  1523. to generate text other than 'Unknown signal <number>'.
  1524. Most people will answer Y.
  1525. config UCLIBC_HAS_SYS_SIGLIST
  1526. bool "Support sys_siglist[] (bsd-compat)"
  1527. depends on UCLIBC_HAS_SIGNUM_MESSAGES
  1528. help
  1529. Answer Y if you want to support sys_siglist[].
  1530. WARNING! In the future, support for sys_siglist[] may be unavailable
  1531. in at least some configurations. In fact, it may be removed
  1532. altogether.
  1533. Most people will answer N.
  1534. config UCLIBC_HAS_GETTEXT_AWARENESS
  1535. bool "Include gettext awareness"
  1536. depends on UCLIBC_HAS_LOCALE && UCLIBC_MJN3_ONLY
  1537. help
  1538. NOTE!!! Not yet integrated with strerror and strsignal. NOTE!!!
  1539. Answer Y if you want to include weak stub gettext support and
  1540. make the *strerror*() and strsignal() functions gettext-aware.
  1541. Currently, to get functional gettext functionality you will need
  1542. to use gnu gettext.
  1543. Most people will answer N.
  1544. config UCLIBC_HAS_GNU_GETOPT
  1545. bool "Support gnu getopt"
  1546. default y
  1547. help
  1548. Answer Y if you want to include full gnu getopt() instead of a
  1549. (much smaller) SUSv3 compatible getopt().
  1550. Note that getopt_long, getopt_long_only as well as getsubopt
  1551. are implemented on top of this choice.
  1552. Most people will answer Y.
  1553. config UCLIBC_HAS_GETOPT_LONG
  1554. bool "Support getopt_long/getopt_long_only (glibc-compat)"
  1555. default y
  1556. help
  1557. Answer Y if you want to include getopt_long[_only()] used by many
  1558. apps.
  1559. Most people will answer Y.
  1560. config UCLIBC_HAS_GNU_GETSUBOPT
  1561. bool "Support getsubopt"
  1562. default y
  1563. help
  1564. Answer Y if you want to include getsubopt().
  1565. Most people will answer Y.
  1566. endmenu
  1567. menu "Big and Tall"
  1568. config UCLIBC_HAS_REGEX
  1569. bool "Regular Expression Support"
  1570. default y
  1571. help
  1572. POSIX regular expression code is really big -- 53k all by itself.
  1573. If you don't use regular expressions, turn this off and save space.
  1574. Of course, if you only statically link, leave this on, since it will
  1575. only be included in your apps if you use regular expressions.
  1576. config UCLIBC_HAS_REGEX_OLD
  1577. bool "Use the older (stable) regular expression code"
  1578. depends on UCLIBC_HAS_REGEX
  1579. default y
  1580. help
  1581. There are two versions of regex. The older (stable) version has
  1582. been in uClibc for quite a long time but hasn't seen too many
  1583. updates. It also has some known issues when dealing with uncommon
  1584. corner cases and multibyte/unicode strings. However, it is quite
  1585. a bit smaller than the newer version.
  1586. If the older version has worked for you and you don't need unicode
  1587. support, then stick with the old version (and say Y here).
  1588. Otherwise, you should use the new version (and say N here).
  1589. config UCLIBC_HAS_FNMATCH
  1590. bool "fnmatch Support"
  1591. default y
  1592. help
  1593. POSIX fnmatch.
  1594. config UCLIBC_HAS_FNMATCH_OLD
  1595. bool "Use the older (stable) fnmatch code"
  1596. depends on UCLIBC_HAS_FNMATCH
  1597. default y
  1598. help
  1599. There are two versions of fnmatch. The older (stable) version has
  1600. been in uClibc for quite a long time but hasn't seen too many
  1601. updates. It also has some known issues when dealing with uncommon
  1602. corner cases and multibyte/unicode strings. However, it is quite
  1603. a bit smaller than the newer version.
  1604. If the older version has worked for you and you don't need unicode
  1605. support, then stick with the old version (and say Y here).
  1606. Otherwise, you should use the new version (and say N here).
  1607. config UCLIBC_HAS_WORDEXP
  1608. bool "Support the wordexp() interface"
  1609. depends on UCLIBC_HAS_GLOB
  1610. help
  1611. The SuSv3 wordexp() interface performs word expansions per the Shell
  1612. and Utilities volume of IEEE Std 1003.1-2001, Section 2.6. It is
  1613. intended for use by applications that want to implement all of the
  1614. standard Bourne shell expansions on input data.
  1615. This interface is rarely used, and very large. Unless you have a
  1616. pressing need for wordexp(), you should probably answer N.
  1617. config UCLIBC_HAS_NFTW
  1618. bool "Support the nftw() interface"
  1619. help
  1620. The SuSv3 nftw() interface is used to recursively descend
  1621. directory paths while repeatedly calling a function.
  1622. This interface is rarely used, and adds around 4.5k. Unless you have
  1623. a pressing need for nftw(), you should probably answer N.
  1624. config UCLIBC_HAS_FTW
  1625. bool "Support the ftw() interface (SUSv4-obsolete)"
  1626. depends on UCLIBC_SUSV4_LEGACY
  1627. help
  1628. The SuSv3 ftw() interface is used to recursively descend
  1629. directory paths while repeatedly calling a function.
  1630. This interface is rarely used, and adds around 4.5k. Unless you have
  1631. a pressing need for ftw(), you should probably answer N.
  1632. config UCLIBC_HAS_FTS
  1633. bool "Support the fts() interface (bsd-compat)"
  1634. help
  1635. The fts functions are provided for traversing UNIX file hierarchies.
  1636. This interface is currently used by the elfutils and adds
  1637. around 7.5k.
  1638. You should port your application to use the POSIX nftw()
  1639. interface.
  1640. Unless you need to build/use elfutils, you should prolly answer N.
  1641. config UCLIBC_HAS_GLOB
  1642. bool "Support the glob() interface"
  1643. depends on UCLIBC_HAS_FNMATCH
  1644. default y
  1645. help
  1646. The glob interface is somewhat large (weighing in at about 2,5k). It
  1647. is used fairly often, but is an option since people wanting to go for
  1648. absolute minimum size may wish to omit it.
  1649. Most people will answer Y.
  1650. config UCLIBC_HAS_GNU_GLOB
  1651. bool "Support gnu glob() interface"
  1652. depends on UCLIBC_HAS_GLOB
  1653. help
  1654. The gnu glob interface is somewhat larger (weighing in at about 4,2k)
  1655. than it's SuSv3 counterpart (and is out of date). It is an old copy
  1656. from glibc and does not support all the GNU specific options.
  1657. Answer Y if you want to include full gnu glob() instead of the smaller
  1658. SUSv3 compatible glob().
  1659. Most people will answer N.
  1660. config UCLIBC_HAS_UTMPX
  1661. bool "utmpx based support for tracking login/logouts to/from the system"
  1662. help
  1663. Answer y to enable support for accessing user accounting database.
  1664. It can be used to track all login/logout to the system.
  1665. If unsure, just answer N.
  1666. endmenu
  1667. menu "Library Installation Options"
  1668. config RUNTIME_PREFIX
  1669. string "uClibc runtime library directory"
  1670. default "/usr/$(TARGET_ARCH)-linux-uclibc/"
  1671. help
  1672. RUNTIME_PREFIX is the directory into which the uClibc runtime
  1673. libraries will be installed. The result will look something
  1674. like the following:
  1675. $(RUNTIME_PREFIX)/
  1676. lib/ <contains all runtime libraries>
  1677. usr/bin/ldd <the ldd utility program>
  1678. sbin/ldconfig <the ldconfig utility program>
  1679. This value is used by the 'make install' Makefile target. Since this
  1680. directory is compiled into the shared library loader, you will need to
  1681. recompile uClibc if you change this value...
  1682. For a typical target system this should be set to "/", such that
  1683. 'make install' will install /lib/libuClibc-<VERSION>.so
  1684. config DEVEL_PREFIX
  1685. string "uClibc development environment directory"
  1686. default "/usr/$(TARGET_ARCH)-linux-uclibc/usr/"
  1687. help
  1688. DEVEL_PREFIX is the directory into which the uClibc development
  1689. environment will be installed. The result will look something
  1690. like the following:
  1691. $(DEVEL_PREFIX)/
  1692. lib/ <contains static libs>
  1693. include/ <Where all the header files go>
  1694. This value is used by the 'make install' Makefile target when
  1695. installing a uClibc development environment.
  1696. For a typical target system this should be set to "/usr", such that
  1697. 'make install' will install /usr/include/<header files>.
  1698. config MULTILIB_DIR
  1699. string "library path component"
  1700. default "lib"
  1701. help
  1702. Path component where libraries reside.
  1703. For a typical target system this should be set to "lib", such that
  1704. 'make install' will install libraries to "/lib" and "/usr/lib"
  1705. respectively
  1706. DEVEL_PREFIX/MULTILIB_DIR
  1707. RUNTIME_PREFIX/MULTILIB_DIR
  1708. Other settings may include "lib32" or "lib64".
  1709. config HARDWIRED_ABSPATH
  1710. bool "Hardwire absolute paths into linker scripts"
  1711. default y
  1712. help
  1713. This prepends absolute paths to the libraries mentioned in linker
  1714. scripts such as libc.so.
  1715. This is a build time optimization. It has no impact on dynamic
  1716. linking at runtime, which doesn't use linker scripts.
  1717. You must disable this to use uClibc with old non-sysroot toolchains,
  1718. such as the prebuilt binary cross compilers at:
  1719. http://uclibc.org/downloads/binaries
  1720. The amount of time saved by this optimization is actually too small to
  1721. measure. The linker just had to search the library path to find the
  1722. linker script, so the dentries are cache hot if it has to search the
  1723. same path again. But it's what glibc does, so we do it too.
  1724. endmenu
  1725. menu "Security options"
  1726. config UCLIBC_BUILD_PIE
  1727. bool "Build utilities as ET_DYN/PIE executables"
  1728. depends on HAVE_SHARED
  1729. depends on TARGET_arm || TARGET_frv || TARGET_i386 || TARGET_mips || TARGET_powerpc
  1730. select FORCE_SHAREABLE_TEXT_SEGMENTS
  1731. help
  1732. If you answer Y here, ldd and iconv are built as ET_DYN/PIE
  1733. executables.
  1734. It requires gcc-3.4 and binutils-2.15 (for arm 2.16) or later.
  1735. More about ET_DYN/PIE binaries on <http://pax.grsecurity.net/> .
  1736. WARNING: This option also enables FORCE_SHAREABLE_TEXT_SEGMENTS, so
  1737. all libraries have to be built with -fPIC or -fpic, and all
  1738. assembler functions must be written as position independent
  1739. code (PIC).
  1740. config UCLIBC_HAS_ARC4RANDOM
  1741. bool "Include the arc4random() function"
  1742. help
  1743. Answer Y to support the OpenBSD-like arc4random() function. This
  1744. function picks a random number between 0 and N, and will always return
  1745. something even if the random driver is dead. If urandom fails then
  1746. gettimeofday(2) will be used as the random seed. This function is
  1747. designed to be more dependable than invoking /dev/urandom directly.
  1748. OpenSSL and OpenNTPD currently support this function.
  1749. Most people will answer N.
  1750. config ARC4RANDOM_USES_NODEV
  1751. bool "Do not use /dev/urandom with arc4random()"
  1752. depends on UCLIBC_HAS_ARC4RANDOM
  1753. help
  1754. Answer Y to use gettimeofday(2) and getpid(2) exclusively for
  1755. arc4random(). This is not a bad idea for a diskless system, but
  1756. it uses a lot of syscalls to stir each array element.
  1757. Most people will answer N.
  1758. config HAVE_NO_SSP
  1759. bool
  1760. config UCLIBC_HAS_SSP
  1761. bool "Support for GCC stack smashing protector"
  1762. depends on !HAVE_NO_SSP
  1763. help
  1764. Add code to support GCC's -fstack-protector[-all] option to uClibc.
  1765. This requires GCC 4.1 or newer. GCC does not have to provide libssp,
  1766. the needed functions are added to ldso/libc instead.
  1767. GCC's stack protector is a reimplementation of IBM's propolice.
  1768. See http://www.trl.ibm.com/projects/security/ssp/ and
  1769. http://www.linuxfromscratch.org/hints/downloads/files/ssp.txt
  1770. for details.
  1771. Note that NOEXECSTACK on a kernel with address space randomization
  1772. is generally sufficient to prevent most buffer overflow exploits
  1773. without increasing code size. This option essentially adds debugging
  1774. code to catch them.
  1775. Most people will answer N.
  1776. config UCLIBC_HAS_SSP_COMPAT
  1777. bool "Support for gcc-3.x propolice smashing stack protector"
  1778. depends on UCLIBC_HAS_SSP
  1779. help
  1780. Add gcc-3.x propolice smashing stack protector to the library.
  1781. This requires a patched version of GCC, supporting the
  1782. -fstack-protector[-all] options, with the __guard and
  1783. __stack_smash_handler functions removed from libgcc.
  1784. These functions are added to ldso/libc instead.
  1785. More information at:
  1786. <http://www.research.ibm.com/trl/projects/security/ssp/>
  1787. Most people will answer N.
  1788. config SSP_QUICK_CANARY
  1789. bool "Use simple guard values without accessing /dev/urandom"
  1790. depends on UCLIBC_HAS_SSP
  1791. help
  1792. Use gettimeofday(2) to define the __guard without accessing
  1793. /dev/urandom.
  1794. WARNING: This makes smashing stack protector vulnerable to timing
  1795. attacks.
  1796. Most people will answer N.
  1797. choice
  1798. prompt "Propolice protection blocking signal"
  1799. depends on UCLIBC_HAS_SSP
  1800. depends on DODEBUG
  1801. default PROPOLICE_BLOCK_SEGV
  1802. help
  1803. "abort" use SIGABRT to block offending programs.
  1804. This is the default implementation.
  1805. "segfault" use SIGSEGV to block offending programs.
  1806. Use this for debugging.
  1807. If unsure, answer "abort".
  1808. config PROPOLICE_BLOCK_ABRT
  1809. bool "abort"
  1810. config PROPOLICE_BLOCK_SEGV
  1811. bool "segfault"
  1812. endchoice
  1813. config UCLIBC_BUILD_SSP
  1814. bool "Build uClibc with -fstack-protector"
  1815. depends on UCLIBC_HAS_SSP
  1816. help
  1817. Build all uClibc libraries and executables with -fstack-protector,
  1818. adding extra stack overflow checking to most uClibc functions.
  1819. config UCLIBC_BUILD_RELRO
  1820. bool "Build uClibc with linker option -z RELRO"
  1821. depends on HAVE_SHARED
  1822. default y
  1823. help
  1824. Build all libraries and executables with "ld -z relro".
  1825. This tells the linker to mark chunks of an executable or shared
  1826. library read-only after applying dynamic relocations. (This comes
  1827. up when a global const variable is initialized to the address of a
  1828. function or the value of another global variable.)
  1829. This is a fairly obscure option the ld man page doesn't even bother
  1830. to document properly. It's a security paranoia issue that's more
  1831. likely to consume memory (by allocating an extra page) rather than
  1832. save it.
  1833. This is explained in more depth at
  1834. http://www.airs.com/blog/archives/189
  1835. Nobody is likely to care whether you say Y or N here.
  1836. config UCLIBC_BUILD_NOW
  1837. bool "Build uClibc with linker option -z NOW"
  1838. depends on HAVE_SHARED
  1839. help
  1840. Build all libraries and executables with "ld -z now".
  1841. This tells the linker to resolve all symbols when the library is
  1842. first loaded, rather than when each function is first called. This
  1843. increases start-up latency by a few microseconds and may do
  1844. unnecessary work (resolving symbols that are never used), but the
  1845. realtime people like it for making microbenchmark timings slightly
  1846. more predictable and in some cases it can be slightly faster due to
  1847. CPU cache behavior (not having to fault the linker back in to do
  1848. lazy symbol resolution).
  1849. Most people can't tell the difference between selecting Y or N here.
  1850. config UCLIBC_BUILD_NOEXECSTACK
  1851. bool "Build uClibc with noexecstack marking"
  1852. default y
  1853. help
  1854. Mark all assembler files as noexecstack, which will mark uClibc
  1855. as not requiring an executable stack. (This doesn't prevent other
  1856. files you link against from claiming to need an executable stack, it
  1857. just won't cause uClibc to request it unnecessarily.)
  1858. This is a security thing to make buffer overflows harder to exploit.
  1859. By itself, it's kind of useless, as Linus Torvalds explained in 1998:
  1860. http://old.lwn.net/1998/0806/a/linus-noexec.html
  1861. It only actually provides any security when combined with address
  1862. space randomization, explained here: http://lwn.net/Articles/121845/
  1863. Address space randomization is on by default in current linux
  1864. kernels (although it can be disabled using the option
  1865. CONFIG_COMPAT_BRK).
  1866. You should probably say Y.
  1867. endmenu
  1868. menu "Development/debugging options"
  1869. config CROSS_COMPILER_PREFIX
  1870. string "Cross-compiling toolchain prefix"
  1871. default ""
  1872. help
  1873. The prefix used to execute your cross-compiling toolchain. For
  1874. example, if you run 'arm-linux-uclibc-gcc' to compile something,
  1875. then enter 'arm-linux-uclibc-' here.
  1876. config UCLIBC_EXTRA_CFLAGS
  1877. string "Extra CFLAGS"
  1878. default ""
  1879. help
  1880. Add any additional CFLAGS to be used to build uClibc.
  1881. config DODEBUG
  1882. bool "Enable debugging symbols"
  1883. select EXTRA_WARNINGS
  1884. help
  1885. Say Y here if you wish to compile uClibc with debugging symbols.
  1886. This will allow you to use a debugger to examine uClibc internals
  1887. while applications are running. This increases the size of the
  1888. library considerably and should only be used when doing development.
  1889. If you are doing development and want to debug uClibc, answer Y.
  1890. Otherwise, answer N.
  1891. config DODEBUG_PT
  1892. bool "Build pthread with debugging output"
  1893. depends on UCLIBC_HAS_THREADS && LINUXTHREADS_OLD
  1894. help
  1895. Enable debug output in libpthread. This is only useful when doing
  1896. development in libpthread itself.
  1897. Otherwise, answer N.
  1898. config DOSTRIP
  1899. bool "Strip libraries and executables"
  1900. default y
  1901. depends on !DODEBUG
  1902. help
  1903. Say Y here if you do wish to strip all uClibc libraries and
  1904. executables. No stripping increases the size of the binaries
  1905. considerably, but makes it possible to debug uClibc libraries.
  1906. Most people will answer Y.
  1907. config DOASSERTS
  1908. bool "Build with run-time assertion testing"
  1909. help
  1910. Say Y here to include runtime assertion tests.
  1911. This enables runtime assertion testing in some code, which can
  1912. increase the size of the library and incur runtime overhead.
  1913. If you say N, then this testing will be disabled.
  1914. config SUPPORT_LD_DEBUG
  1915. bool "Build the shared library loader with debugging support"
  1916. depends on HAVE_SHARED
  1917. help
  1918. Answer Y here to enable all the extra code needed to debug the uClibc
  1919. native shared library loader. The level of debugging noise that is
  1920. generated depends on the LD_DEBUG environment variable... Just set
  1921. LD_DEBUG to something like: 'LD_DEBUG=token1,token2,.. prog' to
  1922. debug your application. Diagnostic messages will then be printed to
  1923. the stderr.
  1924. For now these debugging tokens are available:
  1925. detail provide more information for some options
  1926. move display copy processing
  1927. symbols display symbol table processing
  1928. reloc display relocation processing; detail shows the
  1929. relocation patch
  1930. nofixups never fixes up jump relocations
  1931. bindings displays the resolve processing (function calls);
  1932. detail shows the relocation patch
  1933. all Enable everything!
  1934. The additional environment variable:
  1935. LD_DEBUG_OUTPUT=file
  1936. redirects the diagnostics to an output file created using
  1937. the specified name and the process id as a suffix.
  1938. An excellent start is simply:
  1939. $ LD_DEBUG=binding,move,symbols,reloc,detail ./appname
  1940. or to log everything to a file named 'logfile', try this
  1941. $ LD_DEBUG=all LD_DEBUG_OUTPUT=logfile ./appname
  1942. If you are doing development and want to debug uClibc's shared library
  1943. loader, answer Y. Mere mortals answer N.
  1944. config SUPPORT_LD_DEBUG_EARLY
  1945. bool "Build the shared library loader with early debugging support"
  1946. depends on HAVE_SHARED
  1947. help
  1948. Answer Y here to if you find the uClibc shared library loader is
  1949. crashing or otherwise not working very early on. This is typical
  1950. only when starting a new port when you haven't figured out how to
  1951. properly get the values for argc, argv, environ, etc. This method
  1952. allows a degree of visibility into the very early shared library
  1953. loader initialization process. If you are doing development and want
  1954. to debug the uClibc shared library loader early initialization,
  1955. answer Y. Mere mortals answer N.
  1956. config UCLIBC_MALLOC_DEBUGGING
  1957. bool "Build malloc with debugging support"
  1958. depends on MALLOC || MALLOC_STANDARD
  1959. select DOASSERTS
  1960. help
  1961. Answer Y here to compile extra debugging support code into malloc.
  1962. Malloc debugging output may then be enabled at runtime using the
  1963. MALLOC_DEBUG environment variable.
  1964. The value of MALLOC_DEBUG should be an integer, which is interpreted
  1965. as a bitmask with the following bits:
  1966. 1 - do extra consistency checking
  1967. 2 - output messages for malloc/free calls and OS
  1968. allocation calls
  1969. 4 - output messages for the `MMB' layer
  1970. 8 - output messages for internal malloc heap manipulation
  1971. calls
  1972. Because this increases the size of malloc appreciably (due to strings
  1973. etc), you should say N unless you need to debug a malloc problem.
  1974. config UCLIBC_HAS_BACKTRACE
  1975. bool "Add support for application self-debugging"
  1976. depends on HAVE_SHARED
  1977. help
  1978. Answer Y here to compile support for application self-debugging, by adding
  1979. a new shared object "libubacktrace.so" that provides the following new
  1980. functions:
  1981. backtrace, backtrace_symbols, backtrace_symbols_fd
  1982. The backtrace functionality is currently supported on SH platform, and it
  1983. based on dwarf2 informations to properly work, so any application that
  1984. want to use backtrace needs to be built with -fexceptions flag.
  1985. The symbol names may be unavailable without the use of special linker
  1986. options. For systems using the GNU linker, it is necessary to use the
  1987. -rdynamic linker option too. Note that names of "static" functions are not
  1988. exposed, and won't be available in the backtrace.
  1989. config WARNINGS
  1990. string "Compiler Warnings"
  1991. default "-Wall"
  1992. help
  1993. Set this to the set of compiler warnings you wish to see while compiling.
  1994. config EXTRA_WARNINGS
  1995. bool "Enable extra annoying warnings"
  1996. help
  1997. If you wish to build with extra warnings enabled, say Y here.
  1998. config DOMULTI
  1999. bool "Compile all sources at once into an object"
  2000. help
  2001. Set this to compile all sources at once into an object (IMA).
  2002. This mode of compilation uses alot of memory but may produce
  2003. smaller binaries.
  2004. Note that you need a very recent GCC for this to work, like
  2005. gcc >= 4.3 plus eventually some patches.
  2006. If unsure, keep the default of N.
  2007. config UCLIBC_MJN3_ONLY
  2008. bool "Manuel's hidden warnings"
  2009. help
  2010. Answer Y here to see all Manuel's personal notes, warnings, and todos.
  2011. Most people will answer N.
  2012. endmenu