Config.in 78 KB

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