Hi,
attached patch adds the getopt tool to crossgcc. In case it doesn't exist in the system (eg. mingw), it's compiled and added to the path.
The getopt implementation is taken from dragonflybsd, thus cleanly sublicensable to GPL, given that it's 3-clause BSD licensed. Besides, it's never linked to any other code in our tree.
I wouldn't mind to have some GNU implementation, but I just didn't find one in my short search.
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de