Suboptimal header getopt.h for busybox?
Bernhard Fischer
rep.dot.nop at gmail.com
Fri Mar 23 13:11:56 UTC 2007
On Fri, Mar 23, 2007 at 12:47:52PM +0100, Mats Erik Andersson wrote:
>Hello all,
>
>in trying to optimise a minimal system even further
>for size, I had the idea to switch off full GNU getopt
>support in uClibc and make do with SuSv3 standards.
>It turned out that Busybox refused to compile due to
>several references to include/getopt.h. However, since
>that header file is nothing but a formal inclusion of
>include/bits/getopt.h, I cannot help but wandering why
>the full GNU-getopt-functionality is required. Am I
>missing something essential here? Or could it be that
Yes, you do: getopt is (currently) required for option parsing of the
majority of applets.
CONFIG_GETOPT_LONG can be used to turn off the non-standard getopt_long
stuff.
>Busybox is not optimal with its demands on getopt?
Yes. Patches? :)
More information about the busybox
mailing list